--- Comment #6 from Stewart Gordon <> 2010-11-29 03:29:34 PST ---
(In reply to comment #3)
> The conditions for memcmp working as a way of comparing structs are:
> - no opEquals of a compatible parameter type
> - no holes due to alignment
> - no members with reference semantics (dynamic arrays, AAs, classes)
> - all of this applies recursively to any struct or union members

Looks like I was wrong....
"Equality for struct objects means the bit patterns of the objects match
exactly (the existence of alignment holes in the objects is accounted for,
usually by setting them all to 0 upon initialization)."

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to