Denis Koroskin:

> I've heard that happens in D, too. You can still call C functions at your  
> peril, and no people complained so far.

You have stack overflows with DMD too, but I think in a segmented stack the 
segments are smaller than an average D stack, so it's more probable to go past 
one of them (I presume segmented stacks are like a deck data structure, this 
means a dynamic array of pointers to fixed-sized memory blocks).

Currently the main D compiler has nearly nothing to help against stack 
overflows, no stack guards, no static tools to compute the max stack used by a 
function/program, etc. I think LDC has a bit of optional stack guards.

Bye,
bearophile

Reply via email to