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

[REBOL] Re: Newbie question about func refinements

From: santilli:gabriele:g:mail at: 14-Aug-2008 0:18

On Wed, Aug 13, 2008 at 10:14 PM, Ed O'Connor <> wrote:
> Is there a way to dynamically obtain a refinement value so I can use it in a > switch statement? > In the example above, the pseudo-code expression "self/refinement" is what > I'm looking for.
You can't, refinements are not mutually exclusive in general. (Refinements should not change the meaning of the function, just refine its functionality.) You can use CASE though to do something like what you describe rather easily. HTH, Gabriele.