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

[REBOL] Re: Bug of TRY was bug of function error?

From: greggirwin:mindspring at: 22-Jul-2002 12:20

Hi Romano, Now that I've had a little more coffee, and Anton go me on track...
>> do b >> type? do b
== unset!
>> type? try [do b]
== unset!
>> type? try [b]
== string!
>> type? b
== string! I have no idea why it returns the datatype of the value in this case. Probably worth a feedback, if only to get clarification (hopefully). It says that TRY tries to DO the block, but if you just DO the block yourself, you get the error. Something else has to be going on inside TRY. Given: b 1 ; == 1 is the error only triggered if the data is accessed in some way (e.g. to print in the console, assign, etc.)? If the data is not used, no error is triggered. --Gregg