Re: [Geekos-devel] first release of experimental version
Status: Pre-Alpha
Brought to you by:
daveho
From: David H. <da...@cs...> - 2002-03-11 17:16:20
|
On Mon, Mar 11, 2002 at 12:09:30PM -0500, David Hovemeyer wrote: > I've conciously avoided using the dynamic "new" and "delete" operators, > so we can completely avoid automatic calls to constructors and > destructors made by the compiler. (These calls can be made explicitly > as needed.) Just to clarify, the above statement applies to dynamically allocated objects only. Ctor/dtor calls are of course mandatory for objects used by value. However, I would like to avoid using objects by value as much as possible. Also, for plain structs having no members with constructors/destructors, I'm pretty sure it's legal for the compiler to make the implicit constructor and destructor no-ops which can be optimized away. This falls under the category of "no extra overhead for C programs" which is one of the design goals of C++. -Dave |