October 15, 2014
On Wednesday, 23 July 2014 at 21:14:35 UTC, Brian Schott wrote:
> $ ./dscanner --styleCheck ~/tmp/test.d
> test.d(1:8)[warn]: 'A' has method 'opCmp', but not 'opEquals'.

Nice
October 15, 2014
Am Wed, 15 Oct 2014 11:25:10 +0000
schrieb "Martin Nowak" <code@dawg.eu>:

> On Wednesday, 23 July 2014 at 21:14:35 UTC, Brian Schott wrote:
> > $ ./dscanner --styleCheck ~/tmp/test.d
> > test.d(1:8)[warn]: 'A' has method 'opCmp', but not 'opEquals'.
> 
> Nice

Yep! Some say opCmp is something entirely different from opEquals. One creates an order between two objects while the other tests for equality. I always had the idea that opCmp supersedes opEquals. What dscanner does is probably the only sane way out :)

-- 
Marco

7 8 9 10 11 12 13 14 15 16 17
Next ›   Last »