Re: ErrnoException

2016-02-29 Thread Jirka via Digitalmars-d-learn
On Monday, 29 February 2016 at 23:41:51 UTC, Chris Wright wrote: On Mon, 29 Feb 2016 21:55:49 +, Jirka wrote: Yes, that I understand, but the "new" operator can lead to other system calls (?), could they overwrite it? Yes. Most obviously, the GC uses malloc, which will set errno to ENOME

Re: ErrnoException

2016-02-29 Thread Jirka via Digitalmars-d-learn
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] simp

ErrnoException

2016-02-28 Thread Jirka via Digitalmars-d-learn
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?