[REBOL] Re: Unable to use Switch and Datatypes..
From: brian:hawley at: 7-May-2001 13:18
Larry Palmiter wrote:
>Just a quick tip. This works:
> switch/default type?/word 'aWord [
> word! [ print "a word is a word."]
> ] [
> print "A word is not always a word."
>You need to have word! be a word in the switch list, not a datatype.
Well, that's much cleaner than my solution :)
I never cease to be amazed at the clever little improvements
that have been added to REBOL over time. Sometimes it seems
like there isn't a day that goes by without one of the work-
arounds that I've found over the years becoming obsolete.
Bless Feedback, and this list :)