by Waldek Hebisch <hebisch@[EMAIL PROTECTED]
>
Feb 12, 2008 at 09:28 PM
pavel@[EMAIL PROTECTED]
wrote:
>
> Waldek Hebisch wrote:
> > If you allow for variations in syntax and diffent spelling is
> > Pop11 a Logo? In Pop11 Clem's example looks like:
>
> Can Pop11 treat data (e.g. a list) as instructions. Can Pop11 assign a
> value to a variable which name is computed at run time?
>
Sure. pop11_compile compiles list to machine code, executes and
gives back result:
: [2 + 2] -> code;
;;; DECLARING VARIABLE code
: pop11_compile(code) =>
** 4
:
valof allows you to access variables with given name:
: "code" -> name;
;;; DECLARING VARIABLE name
: valof(name) =>
** [2 + 2]
: "name" -> valof(name);
: code =>
** name
:
> Right now for me it is hard to say whether something is Logo or is not
> Logo. I expect that Logo is a fuzzy (cloudy) thing, so there might be
> languages (or better say programming environments) which are 50%
> Logo-like... or 20% Logo-like....
For languages users care if program runs on different implementation,
or how much effort is needed to change program so that it runs.
--
Waldek Hebisch
hebisch@[EMAIL PROTECTED]