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

[REBOL] Re: using type? with switch

From: jeff:rebol at: 1-Oct-2001 19:40

Howdy, Gregg:
> Is is possible to use the result of type? with switch? I.e. if I want to use > switch to dispatch based on different data types, it seems I have to use > to-string on the result of type? for use with switch. Is that the case or am > I missing something?
Here's an example: probe switch type?/word var [ string! [lowercase var] email! [uppercase var] block! [random var] ... ]