August 25, 2009 [Issue 2757] resource management in a timely manner | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2757 --- Comment #8 from nick barbalich <nick.barbalich@gmail.com> 2009-08-25 03:57:45 PDT --- (In reply to comment #7) > The problem of deterministic destruction can be solved by reference counting or uniqueness. Both may be implemented in the library. D2 will have full support for RAII using structs with the "postblit" operator, this(this). I am currently implementing a reference-counted thread handle and, as soon as compiler bugs are ironed out, I'll templatize it and put in the standard library. Bartosz - Thanks for the reply. I found this reference to "postblit": http://www.puremagic.com/~braddr/phobos-trunk/2.0/struct.html#StructPostblit But I use the Tango library. Will an example be available in Tango, or will there be an equivalent available for Tango ? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation