On Thursday, 11 June 2015 at 07:57:47 UTC, Per Nordlöw wrote:
On Wednesday, 10 June 2015 at 22:03:52 UTC, Ali Çehreli wrote:Another option:void main() { auto a2 = new ubyte[5];But this causes an extra zero-initialization of a2.
just an fyi, gdc optimizes this away(looks like it overwrites the typeinfo,) ldc does not.