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

[REBOL] Re: Switch with refinements/hmmm!

From: sterling::rebol::com at: 31-Oct-2001 14:23

Well, if you only expect one of the refinements to be used... refine-switch: func[ /ref-one /ref-two /ref-three][ switch true reduce [ ; needs a value ref-one [print "ref-one"] ref-two [print "ref-two"] ref-three [print "ref-three"] ] ] will catch the first one that is set. You have a new problem if more than one can set used. Sterling