newLISP Fan Club

Forum => newLISP in the real world => Topic started by: newdep on November 17, 2008, 05:49:26 AM

Title: ? BUG 9.9.94 (context?)
Post by: newdep on November 17, 2008, 05:49:26 AM
Hi Lutz,



I can remember this previously worked ->



(map context? (symbols))



but now that does not return anything anymore..

(i mean all 'nil)





neighter does



>(filter context? (symbols))

()





Is this new? I would expect these to return at least "true" for MAIN..
Title:
Post by: newdep on November 17, 2008, 07:10:46 AM
yes it still works (50%) ;-)





(filter context? (map eval (symbols 'MAIN))))





but I was confused by the use of (map protected? (symbols))

which does return a list of nil / true )
Title:
Post by: Lutz on November 17, 2008, 07:20:47 AM
'context?' takes a context evaluated from a symbol, while 'protected?' takes a symbol. Its like:


> (context? 'MAIN)
nil
> (context? MAIN)
true