[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon Apr 13 17:02:05 1993 
Subject:So you think you know Pop11? [quiz] 
From:Steve Knight 
Volume-ID:930414.03 

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