New slides about Go

Walter Bright newshound2 at digitalmars.com
Thu Oct 14 19:43:15 PDT 2010


Vladimir Panteleev wrote:
> On Fri, 15 Oct 2010 02:45:33 +0300, Denis Koroskin <2korden at gmail.com> 
> wrote:
> 
>> I've heard that happens in D, too. You can still call C functions at 
>> your peril, and no people complained so far.
> 
> I believe D (DMD, at least) is in the exact same situation as C is as 
> far as the stack goes.

The point of a segmented stack is to allocate stack in small bits, meaning 
you'll be highly likely to run out of stack calling functions that do not check 
for stack overflow. The usual C method, which is followed by D, is to estimate 
the max stack used beforehand.


More information about the Digitalmars-d mailing list