Re: The following code bypasses immutabililty with GDC but not DMD

2013-04-12 Thread Nicholas Smith
On Friday, 12 April 2013 at 10:03:50 UTC, Iain Buclaw wrote: In D time, you're a Neanderthal. I suppose someone should update that package in the Software Centre then :P Eh, doesn't matter. Looks like I'll have to get my hands dirty if I want to use GDC.

Re: The following code bypasses immutabililty with GDC but not DMD

2013-04-12 Thread Nicholas Smith
On Friday, 12 April 2013 at 06:39:04 UTC, Iain Buclaw wrote: On Friday, 12 April 2013 at 00:50:03 UTC, Nicholas Smith wrote: I don't know how to file bug reports but I'm sure this shouldn't happen :) DMD gives an error. That's a bug in the frontend, which has since be

The following code bypasses immutabililty with GDC but not DMD

2013-04-11 Thread Nicholas Smith
I don't know how to file bug reports but I'm sure this shouldn't happen :) DMD gives an error. import std.stdio; void main() { immutable Cat cat = cast(immutable) new Cat(5); happyBirthday(cat.age); writefln("My 5 year old cat is %s years old!", cat.age); } void happyBi