delete symbol from context?
Posted: Wed Dec 31, 2003 12:33 am
Can a symbol be deleted from a context some way?
The reason for doing so may be that if a symbol is
created in a context before the same symbol is made global in main then the globalized symbol is never global to that context (can be accessed by MAIN:symbol of course). If that symbol could be deleted from the context symbol table then, presumably, the global symbol could be seen. This would allow cleaning up and in extreme cases perhaps save some memory.
Could a whole context be deleted (currently they are protected in main) once no longer needed eg a context that does only initialization stuff?
This reminds me of the FORTH forget of some of its dictionary.
Nigel
The reason for doing so may be that if a symbol is
created in a context before the same symbol is made global in main then the globalized symbol is never global to that context (can be accessed by MAIN:symbol of course). If that symbol could be deleted from the context symbol table then, presumably, the global symbol could be seen. This would allow cleaning up and in extreme cases perhaps save some memory.
Could a whole context be deleted (currently they are protected in main) once no longer needed eg a context that does only initialization stuff?
This reminds me of the FORTH forget of some of its dictionary.
Nigel