[REBOL] Re: Delete Non-Global Words
From: sunandadh:aol at: 30-Jan-2003 3:39
Phillipe:
> No one knows.. ??
Maybe no one wants to give you the bad news...
Once a word has been defined, the name remains in first system/words for the
life of the console. Only way to get rid of it is to stop and restart again.
Doesn't matter if the word is unset in all contents; the name remains.
A name is only in there once regardless of how many contexts it is in, so
these two functions:
ff: func [/local aa bb cc] []
aa: func [/local ff bb cc] []
Add only four words (aa bb cc and ff). That's one way of reducing the number
of words you have.
But you must have a fairly large program if you are running out if words. So
maybe you need to upgrade to the later versions -- they have room for 8000+
words.
Or you might be running out because you are doing load:
load "xx yy zz"
will add three words even though you never intended xx yy zz to be words --
you can see that with:
last first system/words
Try to-block instead.
to-block "ww vv uu" ;; does not create three new words.
Hth
Sunanda.