[REBOL] Re: Please help me to promote REBOL
From: philb:upnaway at: 9-Nov-2003 14:43
Hi Andrew,
Yes ... but that isnt using the suggested method of set/any 'error try [......]
for eample
>> set/any 'error try [print " "]
>> disarm error
** Script Error: error has no value
** Near: disarm error
Cheers Phil
=== Original Message ===
Phil wrote:
> How do you test for an error?
>
> any time I try to do anything with error I get an error :-)
>> disarm error: try [1 / 0]
>> probe error
** Math Error: Attempt to divide by zero
** Near: 1 / 0
>> probe disarm error
make object! [
code: 400
type: 'math
id: 'zero-divide
arg1: none
arg2: none
arg3: none
near: [1 / 0]
where: none
]
>>
Andrew J Martin
Speaking in tongues and performing miracles.
ICQ: 26227169
http://www.rebol.it/Valley/
http://valley.orcon.net.nz/
http://Valley.150m.com/