Exception/Error division in D

Walter Bright newshound2 at digitalmars.com
Fri Jun 1 03:29:17 PDT 2012


On 6/1/2012 1:15 AM, Jens Mueller wrote:
> Since the current implementation does not follow the specification
> regarding scope and finally block being executed in case of Error will
> try ... catch (...Error) keep working?

No. The reason for this is the implementation was not updated after the split 
between Error and Exception happened. It was overlooked.

> I have code that uses
> assertThrows!AssertError to test some in contracts. Will this code
> break?

I don't know exactly what your code is, but if you're relying on scope to unwind 
in the presence of Errors, that will break.



More information about the Digitalmars-d mailing list