newRPL - Updated to build 1510 [official build remains at 1487]
|
08-20-2023, 10:45 PM
(This post was last modified: 08-20-2023 11:29 PM by Claudio L..)
Post: #302
|
|||
|
|||
RE: newRPL - Updated to build 1510 [official build remains at 1487]
(08-16-2023 02:21 PM)Gilles Wrote: Hi Claudio, I took a quick look and here's what's happening: SORT uses the overloaded operator CMP (compare) to compare individual items. For lists, this operator is not atomic, as it triggers a DOLIST comparing element-by-element as per list processing rules. There was a bug that caused a crash, since SORT was supposed to run CMP as an atomic operation, allowing DOLIST to complete. I fixed that in the source code, will come fixed in the next release. As far as why string comparisons don't work, it's because the operations to compare strings aren't well defined for Unicode strings (what's the order of "a","á", "ä" and "b"?), so they aren't implemented in newRPL (therefore there's no CMP operator for strings, which makes SORT fail). For lists, there's currently some missing logic as well. CMP between 2 lists will return a list with CMP applied to all elements, and SORT should probably look through the list to find the first "not equal" element to decide. I'll see if I can add the logic to make this more robust. EDIT: Just did... will come out in the next update. Still no joy with the strings. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)