DMD 1.027 and 2.011 releases
Christopher Wright
dhasenan at gmail.com
Mon Feb 25 05:15:00 PST 2008
Walter Bright wrote:
> Graham St Jack wrote:
>>> It would work just like "nothrow" does for C++.
>>
>> Just checking - I hope this means that if a nothrow function actually
>> DID try to throw an exception (by calling something that throws),
>> compiler-
>> generated code would trap it and terminate the program with an error
>> message?
>
> No, but it will try to detect errors at compile time.
And nothrow will be a valid part of a delegate signature, correct? So I
can use nothrow with delegates.
Nothrow is especially tricky because it doesn't require a function call
to get an exception. But those cases are relatively rare.
More information about the Digitalmars-d-announce
mailing list