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

[REBOL] Re: switch and datatype

From: sterling:rebol at: 6-Jul-2001 13:18

The issue is that [string!] in a block is actually a word: type? first [string!] == word! Do either: switch type?/word "a string" [ string! [print #switched] ] or switch string! reduce [ string! [print #switched] ] The first is better because it does not have to reduce this possibly large block. Sterling