[Issue 15662] Cannot move struct with defined opAssign due to @disabled post-blit
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Feb 18 03:31:17 PST 2016
https://issues.dlang.org/show_bug.cgi?id=15662
--- Comment #4 from Dicebot <public at dicebot.lv> ---
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.
--
More information about the Digitalmars-d-bugs
mailing list