DMD 1.027 and 2.011 releases
Graham St Jack
Graham.StJack at internode.on.net
Wed Feb 27 14:37:35 PST 2008
On Tue, 26 Feb 2008 23:36:34 -0800, Robert Fraser wrote:
> Graham St Jack wrote:
>> It will be a good trick if you can pull it off. I don't see how it can
>> be done without examining the source code of all the called functions,
>> leaving us back where we started with throw specs.
>
> I think the idea would be that nothrow is part of the function signature
> and a nothrow function can only call other nothrow functions or wrap any
> function calls or news in a catch(Exception) (since there's no way to
> know specifically which exceptions could be thrown).
That would work, but my feeling is that it would be so restrictive that
hardly any functions could be nothrow.
More information about the Digitalmars-d-announce
mailing list