[REBOL] Unable to use Switch and Datatypes..
From: scott::dunlop::home::com at: 7-May-2001 9:07
Is this a bug or a feature?
The following code, which I would expect to generate 'A word is a word.',
outputs 'A word is not always a word.', indicating that word! is not
equivalent to word! for the purposes of switch. This also appears to be
the case with the string! datatype. The interesting thing is that [word! ==
word!] returns true.
switch/default type? 'aWord [
word! [ print "a word is a word."]
] [
print "A word is not always a word."
]
Thanks in advance for any suggestions people have for working around this,
aside from a long chain of Either statements..
--Scott.