[REBOL] Re: Words with no value error
From: tim:johnsons-web at: 8-Jan-2004 17:34
* M&F <[the--optimizer--tiscali--it]> [040108 16:50]:
> On Thu, 8 Jan 2004 12:19:19 EST, <[SunandaDH--aol--com]> wrote:
> >> 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
> Sh*t... should have a better look at TFM! 574 pages and I still can't
> understand the basis of the language!! 8(
> I'm finding Rebol more challeging than any ASM I've tried... here usual
> programming logic seems to be messed up...
1)When in rebol, think 'rebol', don't think 'Assembler'
2)Learn rebol evaluation. And remember that
in rebol (as in Assembler),
data and code are the same.
Best of Luck and keep commin' back.
Tim (old assembler programmer)
> I'll try later with my head shakered... next I'll knock it against the
> edge of the desktop... and if still does not work I'll start using heavy
> drugs... maybe that way everything will be clearer...
> Thanks everyone.
> To unsubscribe from this list, just send an email to
> [rebol-request--rebol--com] with unsubscribe as the subject.
Tim Johnson <[tim--johnsons-web--com]>