http://d.puremagic.com/issues/show_bug.cgi?id=6818
Summary: Globally shared class instances are never released Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Severity: major Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: andrej.mitrov...@gmail.com --- Comment #0 from Andrej Mitrovic <andrej.mitrov...@gmail.com> 2011-10-16 15:24:07 PDT --- import std.stdio; __gshared Foo foo; class Foo { ~this() { writeln("Release Foo"); } } void main() { foo = new Foo; } OTOH the dtor gets properly called if it's a thread-local instance. Is this a known bug? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------