Exception slipping through the catch block?
Adam D. Ruppe
destructionator at gmail.com
Thu Nov 8 15:41:11 UTC 2018
On Thursday, 8 November 2018 at 15:08:40 UTC, helxi wrote:
> Shouldn't the catch block in the function catch the exception?
You caught Exception, but it throws Error. They have separate
inheritance trees.
The common ancestor is actually Throwable, though note that there
is no guarantee that Errors actually unwind the stack; with
certain compile flags they might just abort the program.
More information about the Digitalmars-d-learn
mailing list