std/process.d: nothrow functions which throw (in struct ProcessPipes)
schveiguy at gmail.com
Tue Jul 21 12:51:13 UTC 2020
On 7/21/20 8:49 AM, Adam D. Ruppe wrote:
> On Tuesday, 21 July 2020 at 12:44:23 UTC, Drone1h wrote:
>> Would it be possible to explain this, please ?
> nothrow only applies to Exception and its children. Error is a different
> Error means you have a programming error and cannot be caught and
> recovered (though the compiler allows it anyway, it reserves the right
> to just abort the program instead of actually going through the
> try/catch system), so it doesn't count as a normal exception, even
> though it is still thrown.
> You are supposed to prevent Errors by fixing the bugs in your code, so
> in a final build they never happen.
We need a way to mark posts like "I got this one", so we don't spend the
same time saying the same thing lol.
More information about the Digitalmars-d-learn