Overriding opEquals in classes, for comparison with things that aren't Objects

pineapple via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jan 29 07:02:33 PST 2016


It also occurred to me to do something like this, but it isn't 
accepted either.

     override bool opEquals(T)(T value){
         return this.equals(value);
     }



More information about the Digitalmars-d-learn mailing list