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

[REBOL] Re: string to object - was: Ask

From: greggirwin:starband at: 27-Sep-2001 23:57

Hi Ammon, We're getting close. :) I had the first two thing working that you posted, so we're on the right track there. The catch comes when the object you want to use with 'in only exists as a string containing the name of the object. Using your example:
>>probe do in system to-word "options"
What if it looks like this:
>> sys: "system" >> probe do in sys to-word "options"
How do I convert "system" for use with 'in? If I can do that, without risk, I'm good to go. Sooooo, if what you say is true: << However, if you are using
>>probe do in system to-word "options"
It does NOT polute the global namespace, in fact I can't see a harmful side-effect. Because:
>>probe do in system to-word "options"
does 'options in 'system.
Then *this* is the answer!
>> probe do in get to-word "system" to-word "options"
Does that look right? I mean, it works, but is it safe? It doesn't work for this though:
>> probe do in get to-word "system/options" to-word "cgi"
Dang. I need to sit down with the docs, and Ladislav's articles, and wrap my brain around this side of things. I have this habit of jumping into the deep-end of things before learning to swim. :) Thanks! --Gregg