https://issues.dlang.org/show_bug.cgi?id=15662

--- Comment #4 from Dicebot <[email protected]> ---
Btw note that this compiles:

struct Buffer
{
    @disable this(this);
    void[] data;
}

void main ( )
{
    Buffer[] many;
    many.length += 1;
    many[$-1] = Buffer(new void[42]);
}

.. though it should be semantically identical to appending. Is this a bug or
feature? I really need a reliable way to force compiler to do such appending to
implement concept pointed out by Steven.

--

Reply via email to