[REBOL] Re: Words with no value error

2004-01-09 Thread SunandaDH
Hi Mauro: > 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... > > I'll try later with my head shakered

[REBOL] Re: Words with no value error

2004-01-08 Thread Andreas Bolka
Friday, January 9, 2004, 3:18:05 AM, Anton wrote: > Yes, as Andreas shows, there problem is when the try block returns > an unset! value. eg: Thanks, Anton, for making something useful out of my being unconcentrated :) As a sidenote, anybody ever compiled a list of all native!'s that return un

[REBOL] Re: Words with no value error

2004-01-08 Thread Tim Johnson
* M&F <[EMAIL PROTECTED]> [040108 16:50]: > > On Thu, 8 Jan 2004 12:19:19 EST, <[EMAIL PROTECTED]> 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. > >> > >>

[REBOL] Re: Words with no value error

2004-01-08 Thread Anton Rolls
Yes, as Andreas shows, there problem is when the try block returns an unset! value. eg: >> if error? err: try [print "hi"][] hi ** Script Error: err needs a value ** Near: if error? err: try [print "hi"] Why did that happen? try does the code block, and returns the last value, or an armed error!

[REBOL] Re: Words with no value error

2004-01-08 Thread
On Thu, 8 Jan 2004 12:19:19 EST, <[EMAIL PROTECTED]> 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 misunders

[REBOL] Re: Words with no value error

2004-01-08 Thread Tim Johnson
* M&F <[EMAIL PROTECTED]> [040108 08:26]: > > > Hi all, > I have menaged to read all the over 400 messages from this list sent > during last month... :P > > 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

[REBOL] Re: Words with no value error

2004-01-08 Thread Andreas Bolka
Thursday, January 8, 2004, 6:03:04 PM, M&F 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. if error? try [ an-unset-value ] [ ... ] -- Best regards, Andreas -- To unsubs

[REBOL] Re: Words with no value error

2004-01-08 Thread SunandaDH
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