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

[REBOL] Bug! - 'second on object containing ONE hash! has TWO hash! !! Re:(2)

From: al:bri:xtra at: 5-Oct-2000 22:15

Eric wrote:
> Hi Andrew,
Hi, Eric!
> Are you pulling our leg? Remember 'self ?
It even does a similar thing in old Rebol/Core: REBOL 2.2.0.3.1 Copyright (C) 1998-1999 REBOL Technologies REBOL is a Trademark of REBOL Technologies All rights reserved. Finger protocol loaded Whois protocol loaded Daytime protocol loaded SMTP protocol loaded POP protocol loaded HTTP protocol loaded FTP protocol loaded NNTP protocol loaded Script: "REBOL Extended Definitions" (3-Sep-1999/17:55:08) Script: "User Preferences" (26-Jan-2000)
>> o: make object! [b: make block! [] b2: make block! [] b3: make block! []] >> print mold second o
[ make object! [ b: [] b2: [] b3: [] ] [] [] []]
>> > This is with the non-experimental REBOL/Core. It's interesting that /View
thinks it's necessary to put the ... indicating recursion when there's no recursion involved. Maybe THAT's a bug. I was sure I hadn't seen this behaviour before, but it does seem to be in old Core as well. It _is_ unexpected to me, as I had believed that 'second on a object returned the object's code. second seems to return the storage? of the object:
>> print mold second o
[ make object! [ b: [1] b2: [2] b3: [] ] [1] [2] []] Andrew Martin ICQ: 26227169 http://members.nbci.com/AndrewMartin/