Steven Schveighoffer, Adam D. Ruppe, I wish to thank you both for
your explanations ! I have understood and I have created a small
test program. Indeed, at least on Windows, the destructor of an
automatic struct does not seem to run.
Have a wonderful day... and I hope to be bugging the communi
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
branch.
Error means you have a programming error and cannot be caught and
On 7/21/20 8:44 AM, Drone1h wrote:
Hello All,
In phobos/std/process.d, in the ProcessPipes struct, we can see a few
functions which are marked with "nothrow", but which (under some
conditions) throw:
@property File stdout() @safe nothrow
{
if ((_redirectFlags & Redirect.st
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 branch.
Error means you have a programming error and cannot be caught and
recovered (though the compiler allows it
Hello All,
In phobos/std/process.d, in the ProcessPipes struct, we can see a
few functions which are marked with "nothrow", but which (under
some conditions) throw:
@property File stdout() @safe nothrow
{
if ((_redirectFlags & Redirect.stdout) == 0)
throw new Error