Why D is annoying =P

Jonathan M Davis jmdavisProg at gmx.com
Tue Oct 30 00:22:14 PDT 2012


On Tuesday, October 30, 2012 08:14:59 Rob T wrote:
> > TDPL clearly states that each of the struct's members are
> > supposed to
> > be checked for equality (see section 7.1.5.2, p. 258 - 259).
> 
> So I guess that the POD definition of struct was changed at some
> point?

Structs never were just PODs in D. They have _way_ more capabilities to them 
than that.

If you want bitwise comparison, then use the is operator. That's what it's 
for.

- Jonathan M Davis


More information about the Digitalmars-d mailing list