Here's a little test for Pop-11 language lawyers everywhere ....
Before trying this out, guess whether "X" is a lexical or dynamic variable
in the following example :-
define foo( X );
lconstant a = ( lvars X = 99.dup; );
isident( ident X ) =>
enddefine;
The second part of the test is, of course, to explain the result!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WARNING: this code seems to causes core dumps on my machine -- so make
sure your work is backed up before trying this. I think this is
because of a local problem, but I've got no easy way of proving
that.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Steve
|