[Issue 5282] Use memcmp or other appropriate optimizations for array comparison where possible

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Nov 28 18:17:54 PST 2010


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


Stewart Gordon <smjg at iname.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg at iname.com


--- Comment #3 from Stewart Gordon <smjg at iname.com> 2010-11-28 18:16:25 PST ---
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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list