On 4/9/2017 5:12 PM, Andrew Godfrey wrote:
Is it general?

No.

If not, what is special about Exceptions that makes it work here?

It only works because all ways that such exceptions can leak are controlled. D doesn't have copy construction for making copies of class references. You couldn't use this scheme, for example, to stuff class references into struct fields.

Reply via email to