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

[REBOL] Re: Switch with refinements/hmmm!

From: tim:johnsons-web at: 31-Oct-2001 13:12

On Wed, Oct 31, 2001 at 03:01:09PM -0700, Gregg Irwin wrote:
> Hi Tim, > > << It sure would be nice if I could use 'switch with refinements. > I can't seem to wrap my poor little brain around that one. > Any ideas? >> >
Hi Gregg
> I'm not clear on what you're not clear on. :)
And I don't blame you because I wasn't clear on what I wasn't clear on. I've posted this response to Joel's response: Really meant to include using 'switch in a function refine-switch: func[ /ref-one /ref-two /ref-three][ switch <duh>what would I put her</duh>[ ; needs a value ref-one[print "ref-one"] ref-two[print "ref-two"] ref-three[print "ref-three"] ] ] ; hopefully that makes my lack of clarity clearer. :>) tj