[Issue 12024] [REG DMD2.065-b2] template instantiation for swap(SysTime, SysTime) fails

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jan 29 04:08:15 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=12024


monarchdodra at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |monarchdodra at gmail.com


--- Comment #3 from monarchdodra at gmail.com 2014-01-29 04:08:10 PST ---
> Caused by https://github.com/D-Programming-Language/phobos/pull/1603

Indeed. However, as I explained there, I think it is legit behavior:

SysTime contains a rebindable, and Rebindable contains an immutable, and swap
can't make the choice to mutate immutable.

That said, the issue could be in Rebindable to being with: It stores an
immutable member, but obviously mutates it all the time. In that case, why
bother storing an immutable at all? I think the fix is there.

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


More information about the Digitalmars-d-bugs mailing list