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

[REBOL] Re: 'use question

From: gscottjones::mchsi::com at: 30-Oct-2002 7:42

From: "Maarten Koopmans"
> Yes, but not what I mean:
Too bad! :-)
> A better sample is this: > > f: use [ b c ][ b: 10 c: 2 * b does [ c + 1]] > > Now, how do I access b directly in this case, where it has no occurence > in the function body and thus is really hidden.
Even more interesting. My guess (that I don't know how to prove) is that the lexical scanner (thanks Joel, nice to learn new vocabulary) reduces this line of "data" before becoming "code." Once the code segment, pointed to by f, is ready, the other parts are no longer referenced and marked for garbage collection. Putting aside Joel's cautions (because I knew that you would be well aware of those even more so than me :-), I suspect that you are dealing with dynamic code segments and are looking for ways to manipulate them. I find this whole dynamic very interesting! (So, sorry Joel, for fun this "kid" *is* doing this at home! :-) I look forward to more interesting responses! --Scott Jones