Serious problem with opCmp

kov_serg kov_serg at freemail.ru
Mon Mar 3 02:54:05 PST 2008


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: opCmp.and.Sort.problem.zip
Type: application/zip
Size: 3940 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20080303/49516b42/attachment.zip>


More information about the Digitalmars-d mailing list