digitalmars.D.bugs - [Issue 6642] New: SysTime should not be hasUnsharedAliasing
- d-bugmail puremagic.com (30/30) Sep 10 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6642
- d-bugmail puremagic.com (14/14) Sep 10 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6642
- d-bugmail puremagic.com (6/6) Dec 05 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6642
- d-bugmail puremagic.com (10/10) Apr 27 2012 http://d.puremagic.com/issues/show_bug.cgi?id=6642
- d-bugmail puremagic.com (9/9) Jun 04 2012 http://d.puremagic.com/issues/show_bug.cgi?id=6642
http://d.puremagic.com/issues/show_bug.cgi?id=6642 Summary: SysTime should not be hasUnsharedAliasing Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: zan77137 nifty.com This code should work: ------------------------------ import core.time; import std.traits, std.datetime; static assert(!hasUnsharedAliasing!Duration); static assert(!hasUnsharedAliasing!TickDuration); static assert(!hasUnsharedAliasing!Date); static assert(!hasUnsharedAliasing!TimeOfDay); static assert(!hasUnsharedAliasing!DateTime); static assert(!hasUnsharedAliasing!SysTime); void main() {} ------------------------------ $ dmd -run main main.d(9): Error: static assert (!true) is false -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 10 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6642 Jonathan M Davis <jmdavisProg gmx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jmdavisProg gmx.com PDT --- I would assume that the problem is that std.traits.hasUnsharedAliasing can't properly handle SysTime's _timezone member variable (which is Rebindable!(immutable TimeZone)). Glancing at hasUnsharedAliasing, I would guess that hasUnsharedObjects needs to be fixed to take Rebindable into account. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 10 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6642 https://github.com/D-Programming-Language/phobos/pull/350 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 05 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6642 SomeDude <lovelydear mailmetrash.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lovelydear mailmetrash.com PDT --- Compiles and runs fine with 2.059 Win32 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Apr 27 2012
http://d.puremagic.com/issues/show_bug.cgi?id=6642 Jonathan M Davis <jmdavisProg gmx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 04 2012