On 4/9/14, Brian Schott <[email protected]> wrote:
> Really? What does this program print using a current version of
> DMD?
>
> import std.stdio;
>
> struct SomeStruct
> {
>       this(int i = 10)
>       {
>               this.i = i;
>       }
>       int i;
> }
>
> void main(string[] args)
> {
>       auto s = SomeStruct();
>       writeln("s.i = ", s.i);
> }

This is a current bug that is going to be fixed:
https://github.com/D-Programming-Language/dmd/pull/1397

Reply via email to