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

[REBOL] Re: object funnies

From: al:bri:xtra at: 19-Oct-2001 15:42

Ladislav wrote:
> Essentially, the MAKE searches the SPEC block (but not its subblocks) for
set-words. That is why MAKE didn't find test2: and test3: in your example. I wonder if it would be a smart idea to make a scanner function that looks inside nested blocks for a object! spec and adds any set-word! to the start of the object's block, so that Graham's:
> test: make object! [ > test1: 1 > > fun: does [ > test2: 2 > test3: 3 > test1: test2 + test3 > ]
is written as: test: make-object [ test1: 1 fun: does [ test2: 2 test3: 3 test1: test2 + test3 ] ] which comes out as: test: make object! [ test1: 1 test2: test3: none fun: does [ test2: 2 test3: 3 test1: test2 + test3 ] ] What do people think? Andrew Martin ICQ: 26227169 http://valley.150m.com/