// Works for DMD1/Phobos, DMD1/Tango and DMD2/Phobos
version(Tango) import tango.io.Console;
else           import std.stdio;

struct S
{
        ubyte[40_000] data;
}

void main()
{
        S[] a;
        a ~= S();

// QUESTION: How much memory will this program consume upon reaching this point?
        version(Tango) Cin.copyln();
        else           readln();
}

Reply via email to