[REBOL] fun with 'switch Re:(2)

2000-04-12 Thread mjelinek
Hi Elan, >Hi Michael, > >1. The Problem >2. The Solution > >1. The Problem: retval: curr-func switch retval [none [print "val-none"] "abort" [print "val-abort"]] >>== none >> >>Notice that the == none is the value returned from 'switch, not the >>execution of the none block. To further

[REBOL] fun with 'switch Re:

2000-04-12 Thread giesse
[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 pr

[REBOL] fun with 'switch Re:

2000-04-11 Thread icimjs
Hi Michael, 1. The Problem 2. The Solution 1. The Problem: >>> retval: curr-func >>> switch retval [none [print "val-none"] "abort" [print "val-abort"]] >== none > >Notice that the == none is the value returned from 'switch, not the >execution of the none block. To further illustrate: The reas