[REBOL] Re: Newbie question about func refinements
From: santilli:gabriele:gm:ail at: 14-Aug-2008 0:18
On Wed, Aug 13, 2008 at 10:14 PM, Ed O'Connor <edoconnor-gmail.com> 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.