[Issue 9404] Nullable is unusable with 2.061

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jan 26 14:32:16 PST 2013


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



--- Comment #5 from Artem Tarasov <lomereiter at gmail.com> 2013-01-26 14:32:15 PST ---
OK, apparently default opAssign behaviour has changed to call opAssign of
member fields since merging this pull request:
https://github.com/D-Programming-Language/dmd/pull/166

Documentation at http://dlang.org/struct.html#AssignOverload is outdated, then.

> 
> Technically, when S doesn't have an opAssign, then a *postblit* is called
> (which will basically be a bitwise copy when there is no postblit).
> 
> However, this only happens when there is NO opAssign at all. If there is an
> opAssign, then the compiler must call one of the existing opAssigns. Nullable
> does have an opAssign though (the one taking a T), so that is what the compiler
> is calling.

-- 
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