Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Error Handling

From: rebol-list2:seznam:cz at: 9-Dec-2002 21:15

Hello Rod, Sunday, December 8, 2002, 8:53:01 PM, you wrote: RG> Following on from Ladislav's request for
>> "The interpreter should not have any crashes at all"?
RG> here are some questions and thoughts on error handling RG> in REBOL. RG> Questions - RG> 1. Who is using try, disarm and the error! object? I do it very often. For example this is from my recent IRC client: try-do: func[action][if error? set/any 'err try [do action][bot-error disarm err]] bot-error: func[err /local type id arg1 arg2 arg3][ set [type id arg1 arg2 arg3] reduce [err/type err/id err/arg1 err/arg2 err/arg3] cprint/err [ "Bot-" system/error/:type/type ": " reduce bind system/error/:type/:id 'arg1 ] cprint/err ["** Where: " mold err/where] cprint/err ["** Near: " mold err/near] ] =( Oliva David )=======================( [oliva--david--seznam--cz] )== =( Earth/Europe/Czech_Republic/Brno )============================= =( coords: [lat: 49.22 long: 16.67] )=============================