On Wednesday, July 14, 2010 16:28:40 Vladimir Panteleev wrote: > On Thu, 15 Jul 2010 00:33:15 +0300, Andrei Alexandrescu > > <seewebsiteforem...@erdani.org> wrote: > > All classes have a state where all members are default initialized. > > How is that state normally reached (for classes without a default > constructor)?
It's the state that the object is in before the constructor is called. All of the object's members are initialized to their default value or whatever value you assigned to them at their point of declaration (which must be a value which can be determined at compile time). It's not necessarily a valid state for the object, logically speaking (with regards to invariants and the like), but it's a safe state memory-wise. - Jonathan M Davis