DMD 1.027 and 2.011 releases

Sean Kelly sean at invisibleduck.org
Tue Feb 26 14:24:30 PST 2008


== Quote from Walter Bright (newshound1 at digitalmars.com)'s article
> 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.
> >
> > The C++ approach of a runtime check isn't perfect, but at least it can be
> > done, and provides a more definite form of documentation than comments.
> Are you sure it does a runtime check for nothrow?

I think it depends on the compiler.  The MS compiler, for example, ignores exception specs, except
possibly for nothrow (it's been a while and I cant recall).  However, isn't the app supposed to terminate if an
exception is thrown from a nothrow routine?  I don't have my copy of the spec handy or I'd check.


Sean


More information about the Digitalmars-d-announce mailing list