On Tuesday, 20 December 2016 at 14:56:37 UTC, Ilya Yaroshenko wrote:


As you can see the output should be 1000, but it is 1.



I was a little confused by what you meant, but the following main is a little more obvious to me

void main()
{
        auto c = front();
        c[0] = 1000;
        import std.stdio;
        writeln(c[0]); //prints 1000
        writeln(a[0]); //prints 1
}

Reply via email to