DMD 1.027 and 2.011 releases
lutger
lutger.blijdestijn at gmail.com
Thu Feb 21 08:45:01 PST 2008
Ary Borenszweig wrote:
> Robert Fraser escribió:
>> Extrawurst wrote:
>>> yeah but what happend to the express-such-things-via-documention
>>> policy to keep syntax simple ?
>>
>> It looks like the bane of all my Java existence, exception
>> specifications, are back, under the mask of "optimization" this time.
>> But, unlike const, you're not required to use nothrow to make use of
>> libraries which use it, so it's up to you to ignore it or not.
>
> In fact, it's just serves as a hint to the compiler, right? Like
> "inline" in C?
In the slides from the conference it is mentioned that nothrow is statically
checked by the compiler.
I think it's not only about optimization, it's also useful for writing
exception-safe code.
More information about the Digitalmars-d-announce
mailing list