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

[REBOL] ['=]

From: hallvard:ystad:oops-as:no at: 26-Oct-2004 23:49

Cool subject line, huh? This probably has been asked before, but I couldn't find it on rebol.org, so here goes. This is a little something from a console session that puzzles me:
>> source =: native [
"Returns TRUE if the values are equal." value1 value2 ]
>> http://www.rebol.com/ = http://www.rebol.com/ ; should return true
== true
>> http://www.rebol.com/ = "http://www.rebol.com/" ; should also return true
== false
>>
This, on the other hand, is as expected:
>> source ==
==: native [ {Returns TRUE if the values are equal and of the same datatype.} value1 value2 ]
>> http://www.rebol.com/ == "http://www.rebol.com/" ; should return false
== false
>>
Could someone please enlighten me on the first one? Why don't both examples return true? HY