Thanks Nicolas.
We should check because cyril told me that the primitive was implemented but
not published in the primitive table.
We will have a look.
S.
> On 16 Sep 2019, at 19:42, Nicolas Cellier
> wrote:
>
> This comparison was part of MiscPrimitivePlugin.
> MiscPrimitivePlugin is a
This comparison was part of MiscPrimitivePlugin.
MiscPrimitivePlugin is a false good idea:
Smalltalk fallback code = VMMaker (slang) source
Unfortunately, this is an illusion because unlike the C source inclusions
in ST/X we don't have dynamic slang compilation!
The consequence is that source
I haven't followed nor maintained the SortFunctions library, but it
relied heavily on the response of that method, by means of the
"spaceship operator" ( #<=>), I think that Sven later changed such
operator to "threeWayCompareTo:".
I don't know whether the primitive is available now, it wasn't
This was WIP, don't know if it stalled...
Le lun. 16 sept. 2019 à 08:52, ducasse a écrit :
> I see
>
> threeWayCompareTo: aString
> "Do a three-way comparison between the receiver and anotherObject,
> returning
> -1 if self < anotherObject
> 0 if self = anotherObject
>
I see
threeWayCompareTo: aString
"Do a three-way comparison between the receiver and anotherObject,
returning
-1 if self < anotherObject
0 if self = anotherObject
1 if self > anotherObject
This assumes a total order in accordance with the mathematical law