May 02, 2012 Stack overflow checking? | |
|---|---|
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
| |
February 18 Re: Stack overflow checking? | |
|---|---|
Posted in reply to bearophile | 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 |

Reply