On 7/25/2013 8:39 PM, H. S. Teoh wrote:
How would a D program recover from stack overflow?
The program doesn't. In a safe system, there'd be a backup in case the main program failed (which it inevitably will).
Isn't it possible to allocate the stack at the far end of the program's address space, so that it can grow as needed?
That works until you have more than one thread.