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

[REBOL] Re: 'use question

From: g:santilli:tiscalinet:it at: 30-Oct-2002 15:07

Hi Maarten, On Wednesday, October 30, 2002, 1:55:26 PM, you wrote: MK> Now, how do I access b directly in this case, where it has no occurence MK> in the function body and thus is really hidden. If you know the words, it is not difficult to access them.
>> f: use [b c] [b: 10 c: 20 does [c + 1]] >> f
== 21
>> get probe first second :f
c == 20
>> get probe first bind [b] first second :f
b == 10 If you don't know the words, you can find them (using Ladislav's functions) as long as they are in system/words. If the programmer has played some tricks so that the used words have not been added to system/words, I think that you are out of luck. (Anyway, as long as a word is not accessible in any way, there is no point in trying to serialize it, as it wouldn't have any effect on the execution of the serialized script...) Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r