swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swarm-Support] QSort and its compare function


From: Steve Railsback
Subject: Re: [Swarm-Support] QSort and its compare function
Date: Fri, 11 Nov 2005 13:57:13 -0800
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

Marcus G. Daniels wrote:
Steve Railsback wrote:

The compare method still is never executed- I have a print statement in it that never prints.


Call it "compareBugs", or something other than "compare".. (An idiosyncrasy of how QSort does message sends.)

OK, so the two quirks we identified are:

a. QSort's method "sortObjectsIn()" method does not seem to work from Java- QSort does not seem able to use, by default, a compare method called "compare". (This DOES work in Objective-C Swarm.)

b. But when you use "sortObjectsIn$using()" and explicitly give it a comparison selector, the comparison method that the selector points to must not be called "compare".

Thanks Marcus!

--
Lang Railsback & Assoc.
250 California Ave.
Arcata, California 95521
(707) 822-0453


reply via email to

[Prev in Thread] Current Thread [Next in Thread]