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

[REBOL] tag!

From: hallvard::ystad::helpinhand::com at: 25-Jan-2002 15:20

I like that tag! is a datatype. But. It's not a string. So certain things that may be done to strings may not be done to tags. Still, it sometimes behaves like it's not really a datatype of its own, but, in fact, a string.
>> a: <a href="">
== <a href="">
>> b: <a href ="">
== <a href ="">
>> a = b
== false Shouldn't a = b return true here? In my opinion, these two tags are alike, just like two blocks with different spacing:
>> blk1: [ 1 2 3 ]
== [1 2 3]
>> blk2: [
[ 1 2 [ 3] == [ 1 2 3]
>> blk1 = blk2
== true Is this behaviour wanted? To what degree is tag! a datatype? ~H