www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Stack overflow checking?

reply "bearophile" <bearophileHUGS lycos.com> writes:
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
May 01 2012
parent Marco Leise <Marco.Leise gmx.de> writes:
Am Wed, 02 May 2012 02:45:32 +0200
schrieb "bearophile" <bearophileHUGS 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
Feb 18 2013