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

[REBOL] Re: Words with no value error

From: SunandaDH:aol at: 8-Jan-2004 12:19

Mauro:
> I have a question about the " Script Error: xxx has no value" problem. > > I have seen that there's no way to trap such an error, which is not a > syntax one. > > 'value? does not work, nor does 'error?.
Maybe I misunderstand your question. But I can, and regularly do, capture such errors:
>> xxx
** Script Error: xxx has no value ** Near: xxx
>> if error? capture-error: try [xxx] [print mold disarm capture-error]
make object! [ code: 300 type: 'script id: 'no-value arg1: 'xxx arg2: none arg3: none near: [xxx] where: none ] Sunanda<