[REBOL] Re: Formatted memory dump
From: g:santilli:tiscalinet:it at: 29-Aug-2003 18:00
Hi Steven,
On Friday, August 29, 2003, 5:40:29 PM, you wrote:
SW> Speaking of system words, is there any way a REBOL script can get its
SW> hands on the user-defined words in itself, without hard-coding them?
Well, in theory this should be the purpose of SYSTEM/SCRIPT/WORDS,
but AFAIK this is not implemented. However, as long as you can do
a QUERY/CLEAR on SYSTEM/WORDS before DOing the script, you can see
what words have been modified by evaluating the script using QUERY
on SYSTEM/WORDS. I.e.:
query/clear system/words
; now do a script
do %my-script.r
; let's see what words have been modified by the script:
modified-words: query system/words
; now you could print them like in your example
foreach word modified-words [print word]
HTH,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/