digitalmars.D.learn - Can't instantiate SimpleTimeZone
- Andrej Mitrovic (13/15) May 16 2013 I was using the AE[1] library, but recently it started to fail to
- nazriel (4/24) May 16 2013 I believe it may be related to this:
- Andrej Mitrovic (4/7) May 16 2013 Thanks, that does explain it. I have to put this in the changelog ASAP.
I was using the AE[1] library, but recently it started to fail to compile due to essentially this: -------- import std.datetime; void main() { Duration dur; auto x = new SimpleTimeZone(dur); } --------test.d(8): Error: immutable method std.datetime.SimpleTimeZone.this is not callable using a mutable object test.d(8): Error: no constructor for SimpleTimeZoneThe only constructors available for that class are all immutable. Why the breaking change? Did it break on purpose? And why is the error message so awful?
May 16 2013
On Thursday, 16 May 2013 at 14:01:13 UTC, Andrej Mitrovic wrote:I was using the AE[1] library, but recently it started to fail to compile due to essentially this: -------- import std.datetime; void main() { Duration dur; auto x = new SimpleTimeZone(dur); } --------I believe it may be related to this: http://forum.dlang.org/post/517E4196.9090002 outerproduct.org http://forum.dlang.org/post/CAFDvkctF-_A=JpP7a+qO43vsQLBg_UPnUsJjj01vKaEQWbJ4RA mail.gmail.comtest.d(8): Error: immutable method std.datetime.SimpleTimeZone.this is not callable using a mutable object test.d(8): Error: no constructor for SimpleTimeZoneThe only constructors available for that class are all immutable. Why the breaking change? Did it break on purpose? And why is the error message so awful?
May 16 2013
On 5/16/13, nazriel <spam dzfl.pl> wrote:I believe it may be related to this: http://forum.dlang.org/post/517E4196.9090002 outerproduct.org http://forum.dlang.org/post/CAFDvkctF-_A=JpP7a+qO43vsQLBg_UPnUsJjj01vKaEQWbJ4RA mail.gmail.comThanks, that does explain it. I have to put this in the changelog ASAP. Chances are the 2.063 release is going to be one of the most breaking releases ever.
May 16 2013