[Issue 2482] Spec does not reference about special x functions in TypeInfo_Struct

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Dec 21 19:04:22 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=2482

--- Comment #5 from Steven Schveighoffer <schveiguy at yahoo.com> ---
Actually, may be good to elaborate on the points in the AA docs.

I found that defining a toHash function without const makes it skip the
function for xtoHash.

A note saying "Only the above signatures are guaranteed to work with AAs. If
you change the signature in some way, it may not work"

Defining opEquals without const makes it fail to be an AA key.

--


More information about the Digitalmars-d-bugs mailing list