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

[REBOL] generalities of addresses and values... Re:(4)

From: rishi:picostar at: 10-Oct-2000 23:37

Thanks Joel!! Please ignore (I know...too late) my previous message... Anyway, there is still one piece of the puzzle missing..
>> a: "test"
== "test"
>> b: a
== "test"
>> print b
test
>> b: "hello"
== "hello"
>> print a
test Here, when you set word 'b to 'a, I assume that 'a is dereferenced and then a copy of that reference is placed in b. So now both 'b and 'a should point to the same structure. Now when I set 'b to "hello", I change the address of the variable 'b to point to a new structure. oops...never mind...this is all making perfect sense now!!! So, here is a third attempt (third time is a charm...right?) to generalize how addresses and values work in rebol: All series! datatypes are treated as references and all other datatypes (numbers, dates, etc..) are treated as values. Has anyone confirmed this? I know I am not supposed to snoop around and figure out how this stuff works in REBOL, but it is just something I have to know... Rishi Previously, you ([joel--neely--fedex--com]) wrote: