https://issues.dlang.org/show_bug.cgi?id=18788
--- Comment #5 from Mike Franklin <slavo5...@yahoo.com> --- Another way of achieving the same result would be to make a `scope`d dynamic array allocate on the stack --- class C { } void main() { scope C c = new C(); // `c` is allocated on the stack scope int[] i = [1, 2, 3]; // `i` is inconsistently allocated on the heap } I think this should be consistent between classes and dynamic arrays; `i` should be allocated on the stack, and appending to it should allocate `realloc`ate it on the stack. --