[REBOL] Re: Help me, Obi Reb Kenobi, you're my only hope!
From: g:santilli:tiscalinet:it at: 1-Sep-2002 19:26
Hi Ladislav,
On Sunday, September 1, 2002, 1:23:35 PM, you wrote:
LM> The difference is, that in this case the result of the (first block2)
LM> expression evaluation "legally" exists, that is why I call it a "legal"
LM> error.
I see. I'd more likely have errors as first class, instead of a
DEFAULT function able to make the distinction. Anyway, it is
possible to discern the two cases with:
>> is-really-error?: func [code] [error? try compose [error? (code)]]
>> is-really-error? [first block]
== true
>> is-really-error? [first block2]
== false
I haven't tried it with any other case tough.
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r