[REBOL] Re: Please help me to promote REBOL
From: AJMartin:orcon at: 24-Dec-2003 22:45
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/