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

[REBOL] Words with no value error

From: the::optimizer::tiscali::it at: 8-Jan-2004 18:03

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 is not a syntax one. 'value? does not work, nor does 'error?. But why 'try and 'throw-on-error do not as well? Aren't they thought to trap this kind of dynamic errors? It appears to be more a bug than a wanted feature. Notice that a word can come as a parameter of a function and 'get can be used on it. But there's no way to catch such an error, halting the script execution. So using the features Rebol provides (such as data = code) can result in a lethal error and cannot be used when the input has not been previously checked (if such a check is ever possible). Hope this is going to be fixed soon. Mauro<