Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Formatted memory dump

From: Steven::White::ci::bloomington::mn::us at: 29-Aug-2003 10:40

Speaking of system words, is there any way a REBOL script can get its hands on the user-defined words in itself, without hard-coding them? In other words, if I wanted to make a formatted "memory dump" to display when some error occurs, I could say print <word-1> print <word-2>... print <word-n> and write a module like this for every script, with "word-n" being each word in the script. BUT, if the script itself could find those words in some system area, THEN I could write ONE general-purpose module that I could put into ANY script, and when I called it I would get a listing of all the word in the script with their current values. Thank you. Steven White City of Bloomington 2215 W Old Shakopee Rd Bloomington MN 55431-3096 USA 952-563-4882 (voice) 952-563-4672 (fax) [swhite--ci--bloomington--mn--us]