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/
-><-

-- 
To unsubscribe from this list, just send an email to
[EMAIL PROTECTED] with unsubscribe as the subject.

Reply via email to