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 12:39

On Wed, Oct 31, 2001 at 03:03:03PM -0600, Joel Neely wrote:
> Hi, Tim, > > Tim Johnson wrote: > > > > Hello: > > 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? > > > > Could you supply a hypothetical sample of code that would illustrate > what you have in mind?
Hi Joel! 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"] ] ] Thanks Joel :>)