struct opCmp?
Derek Parnell
derek at psych.ward
Thu May 14 18:36:57 PDT 2009
On Thu, 14 May 2009 18:21:14 -0400, Nick Sabalausky wrote:
> "Lars T. Kyllingstad" <public at kyllingen.NOSPAMnet> wrote in message
> news:gui4ml$2g0n$1 at digitalmars.com...
>>
>> I think you have to use opEquals to overload ==. opCmp only applies to <,
>> <=, >, and >=.
>>
>
> Oh, I figured either opEquals would be defined in terms of opCmp or an
> overloaded opCmp would imply a new opEquals defined in terms of it, or
> something like that.
See http://www.digitalmars.com/d/1.0/operatoroverloading.html for actual
list.
--
Derek Parnell
Melbourne, Australia
skype: derek.j.parnell
More information about the Digitalmars-d-learn
mailing list