catch/rethrow
kris
foo at bar.com
Wed Jun 7 17:50:09 PDT 2006
Sean Kelly wrote:
> You can for the above case. But D also supports:
>
> catch{ ... }
>
> ie. without the "(Exception e)". However, unlike C++, "throw;" in this
> instance is invalid so there's no way to rethrow the exception.
>
> Basically, I'm wondering why this form of catch exists. It can catch
> exceptions but not report anything about them (as it has no object
> reference), and it can't rethrow them. I can't think of a single case
> where I would actually use this statement as it exists now.
Gotcha, and neither can I
More information about the Digitalmars-d
mailing list