[REBOL] Re: [refinements] Mutually exclusive refinements
From: gabriele:colellachiara at: 15-Aug-2004 11:58
Hi Ashley,
On Sunday, August 15, 2004, 2:47:52 AM, you wrote:
AT> Anyone come across a better way?
Someday, somewhere, you'll be able to use:
>> help case
USAGE:
CASE block /all
DESCRIPTION:
Evaluates each condition, and when true, evaluates what follows it.
CASE is a native value.
ARGUMENTS:
block -- Block of cases (conditions followed by values) (Type: block)
REFINEMENTS:
/all -- Evaluate all cases (do not stop at first true case)
>> case [
[ 1 > 1 [print 'not]
[ 1 = 1 [print 'yep]
[ 2 = 2 [print 'not-again]
[ ]
yep
== true
;-)
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/