Serious problem with opCmp

Bill Baxter dnewsgroup at billbaxter.com
Mon Mar 3 03:17:48 PST 2008


kov_serg wrote:
> Bill Baxter Wrote:
> 
>> If you want to help you can start by editing the comment page for 
>> operator overloading:
>> http://www.prowiki.org/wiki4d/wiki.cgi?DocComments/OperatorOverloading
>>
>> (which I added just a week or two ago, trying to be helpful because I 
>> couldn't find any examples of how to write an opCmp... but apparently 
>> they live in the "array" section of the documentation for some reason.)
> 
> I'll try to write something soon. But I am only start to lean D language.
> Here is an test code (opCmp.and.Sort.problem.zip) with output for cmp and sort for v1 and v2. And it shows the strange behaviour not only for opCmp but for buildin sort for dinamic array.

I went ahead and did it.  I don't think it requires a novel or anything. 
  Just a few sentences.

--bb



More information about the Digitalmars-d mailing list