Stack overflow checking?

Marco Leise Marco.Leise at gmx.de
Mon Feb 18 12:48:43 PST 2013


Am Wed, 02 May 2012 02:45:32 +0200
schrieb "bearophile" <bearophileHUGS at lycos.com>:

> I'd like to open an enhancement request for something like this 
> as a feature for all D compilers, what do you think? (Generally 
> Ada has something to teach to D design):
> 
> http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gnat_ugn_unw/Stack-Overflow-Checking.html
> 
> Thank you,
> bye,
> bearophile

I'm not opposed. It is easily possible to segfault an @safe
D program with a stack overflow. E.g. not cautious when writing
the exit condition in a recursive function. If this can be a
proper StackOverflowException somehow, it would be nice.

-- 
Marco



More information about the Digitalmars-d-learn mailing list