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

[REBOL] hash in object bug

From: dlhawley::attbi::com at: 9-Mar-2002 9:25

I've just discovered arather crazy behavior of hashs inside an object - they don't seem to be unique! Succinct example:
>> aa: make object! [ h: make hash! [] ] >> bb: make aa [] >> append aa/h [ 1 2 ]
== make hash! [1 2]
>> probe bb
make object! [ h: make hash! [1 2] ]
>>
Why in the world is aa/h the same object as bb/h ? This is a real pain to say the least. Dave