Page 1 of 1
more contexts
Posted: Fri Mar 10, 2006 12:04 pm
by newdep
Probably a real easy one, but i cant find it ;(
How can I see how many and what contexts are currently active?
Norman.
Posted: Tue Mar 21, 2006 5:26 pm
by pjot
Maybe like this (run from MAIN context):
Code: Select all
(dotimes (x (length (symbols))) (if (context? (eval (nth x (symbols)))) (println (nth x (symbols)))))
Or is this not what you are looking for?
Peter
Posted: Tue Mar 21, 2006 5:50 pm
by pjot
Even faster:
Code: Select all
(dotree (s MAIN)(if (context? (eval s)) (println s)))
Peter