module main;
import std.stdio, core.memory, std.container.dlist;
class hui
{
this()
{
writeln("hui()");
}
~this()
{
writeln("~hui()");
}
}
void main(string[] args) {
GC.disable;
auto list = new DList!int([1,2,3]);
hui[10] lol;
foreach(i; 0..10)
lol[i] = new hui;
foreach(lolchto; lol)
delete lolchto;
delete list;
readln;
}
bW9kdWxlIG1haW47CgppbXBvcnQgc3RkLnN0ZGlvLCBjb3JlLm1lbW9yeSwgc3RkLmNvbnRhaW5lci5kbGlzdDsKY2xhc3MgaHVpCnsKCXRoaXMoKQoJewoJCXdyaXRlbG4oImh1aSgpIik7Cgl9Cgl+dGhpcygpCgl7CgkJd3JpdGVsbigifmh1aSgpIik7Cgl9Cn0KCnZvaWQgbWFpbihzdHJpbmdbXSBhcmdzKSB7CglHQy5kaXNhYmxlOwoKCWF1dG8gbGlzdCA9IG5ldyBETGlzdCFpbnQoWzEsMiwzXSk7CglodWlbMTBdIGxvbDsKCglmb3JlYWNoKGk7IDAuLjEwKQoJCWxvbFtpXSA9IG5ldyBodWk7Cglmb3JlYWNoKGxvbGNodG87IGxvbCkKCQlkZWxldGUgbG9sY2h0bzsKCglkZWxldGUgbGlzdDsKCXJlYWRsbjsKfQoKCg==