Stable D version?

Jonathan M Davis jmdavisProg at gmx.com
Tue Apr 23 16:53:28 PDT 2013


On Tuesday, April 23, 2013 07:02:39 Mehrdad wrote:
> Well, I think the float behavior is correct and the string
> example is broken, but that wasn't my point anyway.
> 
> The point was that it's still broken.

According to TDPL (section 7.1.5.2, p. 258 - 259), == on structs should be 
equivalent to using == on each of the struct's members:

http://d.puremagic.com/issues/show_bug.cgi?id=3789

Doing anything else would be inconsistent, and the way that it is has 
definitely been causing problems and forces people to overload opEquals way 
more often than strictly speaking should be necessary.

- Jonathan M Davis


More information about the Digitalmars-d mailing list