struct MemoryBlockInfo { size_t size; long[10] backtrace; int backtraceSize; this(size_t size) { this.size = size; } } int main(string[] argv) { MemoryBlockInfo info; info = MemoryBlockInfo.init; //array allocation here } This allocation seems totaly unneccesary. Also TypeInfo.init should return a immutable(void)[] instead of a void[] as it seems totaly illogical to modify the data retreived by TypeInfo.init. This is especially critical when working without a GC because one is not able to free the allocated memory for the array as the allocation gets generated by the compiler.
Discussion suggesting this is resolved and should be closed. http://forum.dlang.org/post/jsmipc$17h7$1@digitalmars.com I couldn't find the issue it was a duplicate of.
(In reply to comment #1) > Discussion suggesting this is resolved and should be closed. Now it's closed as fixed. > I couldn't find the issue it was a duplicate of. Maybe it was fixed fixing Issue 7243