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

[REBOL] new puzzle on sameness 1

From: rotenca:telvia:it at: 13-Feb-2003 21:07

Some scalar are more same? than others. To make things more easy (at least for Ladislav), i'll use the identical? function of Ladislav. This is the puzzle (real trascription of a console session):
>> a1: 0
== 0
>> a2: a1
== 0
>> a3: a1
== 0
>> identical? a1 a2
== true
>> identical? a1 a3
== true
>> identical? a2 a3
== true
>> a1: 1
== 1
>> identical? a1 a2
== true
>> identical? a1 a3
== false
>> identical? a2 a3
== false
>> a1
== 1
>> a2
== 1
>> a3
== 0 --- Ciao Romano