November 12, 2014 Re: Destructor/Finalizer Guarantees | ||||
---|---|---|---|---|
| ||||
Posted in reply to eles | It can work with only managed destructor - that's how it's usually done. Finalizer only guards against slow resource leak when you forget to free them. |
November 12, 2014 Re: Destructor/Finalizer Guarantees | ||||
---|---|---|---|---|
| ||||
Posted in reply to eles | On Wednesday, 12 November 2014 at 14:42:38 UTC, eles wrote: > Which is why this approach is so cumbersome. At least, in non-GC you only have just one kind of destructor. It's not necessarily very cumbersome. Standard library usually provides necessary integration: http://blogs.msdn.com/b/bclteam/archive/2005/03/16/396900.aspx |
Copyright © 1999-2021 by the D Language Foundation