? BUG 9.9.94 (context?)

Started by newdep, November 17, 2008, 05:49:26 AM

Previous topic - Next topic

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..
-- (define? (Cornflakes))

newdep

#1
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 )
-- (define? (Cornflakes))

Lutz

#2
'context?' takes a context evaluated from a symbol, while 'protected?' takes a symbol. Its like:


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