Exception Handling, Scope and Destructor questions
Kirk McDonald
kirklin.mcdonald at gmail.com
Mon Feb 12 18:25:15 PST 2007
Jarrett Billingsley wrote:
> "Kirk McDonald" <kirklin.mcdonald at gmail.com> wrote in message
> news:eqqjbc$ebp$1 at digitalmars.com...
>
>>> Lastly, the catch() does not need to have a scope, yes? something like
>>> catch(Exception e) ProcessGeneric(); in summary of the code above?
>> Yes, this is allowed.
>
> Wow, you learn something new every day :) Never knew you could make
> try/catch/finally statements without the braces. Huh. I'll have to add
> that to MiniD.
>
>
C++'s treatment of this topic is one of its many freakish features:
http://www.everything2.com/index.pl?node_id=1429017
--
Kirk McDonald
http://kirkmcdonald.blogspot.com
Pyd: Connecting D and Python
http://pyd.dsource.org
More information about the Digitalmars-d-learn
mailing list