-
Notifications
You must be signed in to change notification settings - Fork 416
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
Local words break SORT/COMPARE #5265
Comments
Example outputs (commenting out
|
Hiiamboris says: the fix counts locals, so it misses refinements. Here's an example with a refinement that exhibits the original (bad!) behaviour:
|
The callback function spec should be validated before sorting occurs. It needs to test for 2 argument words, possible We should do such user-provided callback spec validation systematically for all other similar cases (e.g. tracing callbacks). |
should this issue stay open then? |
Describe the bug
A SORT/COMPARE witt /LOCALs behaves badly
To reproduce
Different results happen if either of the PRINTs are commented out. The results are not right, with or without either of the PRINTs. Repeated running can crash the console with no message.
Expected behavior
The data to be sorted.
It works just fine if the local words are global, or local to a function containing the SORT....
This works just fine:
Platform version
-----------RED & PLATFORM VERSION-----------
RED: [ branch: "master" tag: #v0.6.4 ahead: 4610 date: 7-Dec-2022/11:23:15 commit: #864cd973f53298228f242f5653843cbd61b7cbe0 ]
PLATFORM: [ name: "Windows 11" OS: 'Windows arch: 'x86-64 version: 10.0.0 build: 22621 ]
The text was updated successfully, but these errors were encountered: