New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VALUE? inconsistency #1914
Comments
Submitted by: BrianH This is a side effect of #1893. In the case of value? f none, the script error returned is incorrect. The word is not really not bound to a context, it's just bound to an out-of-scope function context. So, VALUE? isn't being inconsistent, the contexts are. |
Submitted by: Ladislav Yes, the "out-of-scope function context" text looks more accurate. However, my opinion is that the VALUE? function documentation specifies that the function shall return FALSE when it does not return TRUE. Also, I do not think it is a side-effect of #1893. |
Submitted by: Ladislav In the core-tests suite. |
Submitted by: Ladislav Pull request submitted. |
Submitted by: Ladislav
The VALUE? function served in R2 as a kind of guard against triggering an error when trying to get a value of a word.
This property made the function useful and it was also in agreement with the documentation stating that "Returns TRUE if the word has been set...Returns FALSE for all other values." (in R2) or "The VALUE? function returns TRUE if the specified word has a value. It returns FALSE if not." (in R3).
In both cases it is a consequence of logic that when the VALUE? function doesn't return TRUE it shall return FALSE.
CC - Data [ Version: alpha 112 Type: Bug Platform: All Category: Native Reproduce: Always Fixed-in:none ]
The text was updated successfully, but these errors were encountered: