Question on @nothrow
Yuxuan Shui via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Jul 5 13:08:45 PDT 2017
On Wednesday, 31 May 2017 at 09:31:48 UTC, Jonathan M Davis wrote:
> On Wednesday, May 31, 2017 08:18:07 Vasileios Anagnostopoulos
> via Digitalmars-d-learn wrote:
>> [...]
>
> Well, if you're not doing checked exceptions, the interesting
> question is really what _doesn't_ throw rather than what
> throws, because if the compiler knows that a function doesn't
> throw, it can optimize out the exception handling mechanisms
> that are normally required.
I don't think this is possible in current D? @nothrow functions
can still throw Error.
More information about the Digitalmars-d-learn
mailing list