WAT: opCmp and opEquals woes

Brian Schott via Digitalmars-d digitalmars-d at puremagic.com
Wed Jul 23 14:14:34 PDT 2014


As of about 2 minutes ago, D-Scanner can help with this.

---
struct A {
	int opCmp() const;
}
---

$ ./dscanner --styleCheck ~/tmp/test.d
test.d(1:8)[warn]: 'A' has method 'opCmp', but not 'opEquals'.


More information about the Digitalmars-d mailing list