help-3dldf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[help-3dldf] Re: variables in yyparse


From: Akim Demaille
Subject: [help-3dldf] Re: variables in yyparse
Date: Mon, 20 Dec 2004 09:33:18 +0100
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.3 (gnu/linux)

>>> "Paul" == Paul Eggert <address@hidden> writes:

 >> Is the upshot that `bad_alloc' will never be thrown?

 > Sorry, I don't quite follow C++ and don't really know the difference
 > between the throwing forms of "new" and the others;

By default, when malloc would return 0, new throws bad_alloc.  There
is a special form of new with a second argument equal to the global
object nothrow that makes it return 0.

 > but the bottom line is that yes, if you keep allocating objects and
 > never free them, eventually you'll run out of memory (even on GNU
 > systems :-).

I believe it should be emphasized that it that case, most programs
(but the OS, shells, etc.) can simply shut down.  The situation is
really exceptional, and recovery almost impossible.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]