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

[REBOL] NOT a bug - Bug! - 'second ... Re:

From: joel:neely:fedex at: 6-Oct-2000 0:09

I don't think this is a bug. See below. [Al--Bri--xtra--co--nz] wrote:
> Bug! - 'second on object containing ONE hash! has TWO hash! !! >
Consider this transcript:
>> o: make object! [
[ a: "fee" [ b: "fie" [ c: "foe" [ d: "fum" [ ] (no fancy structures ;-)
>> print mold first o
[self a b c d] That was a list of words bound in the context of o ...
>> print mold second o
[ make object! [ a: "fee" b: "fie" c: "foe" d: "fum" ] "fee" "fie" "foe" "fum"] ...and those are their bindings in o (as I understand it). So the make object!... part is just the value of self in o .
> REBOL/View 0.10.35.3.1 30-Sep-2000 > Copyright 2000 REBOL Technologies. All rights reserved. > >> o: make object! [h: make hash! []] > >> o/h > == make hash! [] > >> second o > == [ > make object! [ > h: make hash! [] > ] make hash! [...]] >
Where the TWO values in the last response (block) are the values corresponding to [self h] in o. -jn-