ErrnoException
Jirka via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Feb 29 13:55:49 PST 2016
On Sunday, 28 February 2016 at 14:59:22 UTC, Mike Parker wrote:
> On Sunday, 28 February 2016 at 13:10:20 UTC, Jirka wrote:
>> I have a question about ErrnoException. When I throw it (throw
>> new ErrnoException()), won't it overwrite the errno value
>> before it can capture it?
>
> Its constructor [1] simply fetches the current errno and gets
> an error message from it.
>
> [1]
> https://github.com/D-Programming-Language/phobos/blob/master/std/exception.d#L1491
Yes, that I understand, but the "new" operator can lead to other
system calls (?), could they overwrite it?
More information about the Digitalmars-d-learn
mailing list