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

[REBOL] Re: Which? [Object! Block!]

From: al:bri:xtra at: 28-Sep-2001 3:53

> Yes, but this method just bind already defined words to specified context
so it is not for doing block of "universal" code:
> >> object: make object! [x: 123] > >> do bind [e: 8] in object 'self > == 8 > >> object/e > ** Script Error: Invalid path value: e > ** Where: halt-view > ** Near: object/e > >> e > == 8 > >>
So, we want set-word! to expand the context? In which case then, something like the scanner that operates on object! to determine the words in it would be useful. IOW, find any set-word values in the block (may be dive into block! values as well? perhaps using block parse), rewrite the containing object with those set-words, then bind and do the block. Andrew Martin [Sounds of Rebolutionary fervour...] ICQ: 26227169 http://zen.scripterz.org