[EMAIL PROTECTED] wrote:

> >> retval: curr-func
> >> switch retval [none [print "val-none"] "abort" [print "val-abort"]
                    ^^^^

Did you realize that the one above is a value of type word! and
value "none", while your return value is a value of type none! ?

You can solve this problem using reduce:

>> switch none [      
[    none [print "found none"]
[    ]
== none
>> switch 'none [           
[    none [print "found none"]
[    ]                        
found none
>> switch none reduce [     
[    none [print "found none"]
[    ]
found none

HTH,
   Gabriele.
-- 
Gabriele Santilli <[EMAIL PROTECTED]> - Amigan - REBOL programmer
Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/

Reply via email to