Page 1 of 1

? BUG 9.9.94 (context?)

Posted: Mon Nov 17, 2008 1:49 pm
by newdep
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..

Posted: Mon Nov 17, 2008 3:10 pm
by newdep
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 )

Posted: Mon Nov 17, 2008 3:20 pm
by Lutz
'context?' takes a context evaluated from a symbol, while 'protected?' takes a symbol. Its like:

Code: Select all

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