newLISP Fan Club

Forum => newLISP in the real world => Topic started by: CaveGuy on October 13, 2002, 08:16:54 AM

Title: Freeing up orphaned contexts.
Post by: CaveGuy on October 13, 2002, 08:16:54 AM
I again repeat myseld here in the New Forum .....



Now for something completily .... well at least no NaNs :)



How do I free up orphaned contexts without restarting the application?



I can (load) or (save) contexts just fine but how do free one up and release the orphans without restarting ?



IT is so close......



Please let me set it to nil or somthing.



Thanks again...

(bob)

bob@bradlee.org
Title: Freeing up orphaned contexts.
Post by: Lutz on October 13, 2002, 08:52:47 PM
You could use 'delete' to delete symbols and their contents. Or just nil the symbols, as you suggest, which would keep the symbols but free all the contents.



I.e. after having loaded the demo application 'Hanoi' from the Demo menu, you could do a:



(map delete (symbols 'Hanoi))



This would delete all symbols and contents in context 'Hanoi'



Lutz



PS: just post in the 'New Forum' only. Ryon set this up a couple of weeks ago for better posting of code, editing messages etc. The old forum is only here as a reference, to look up past stuff, etc..