On Thu, 15 Jul 2010 02:46:22 +0300, Jonathan M Davis
<[email protected]> wrote:
On Wednesday, July 14, 2010 16:28:40 Vladimir Panteleev wrote:
On Thu, 15 Jul 2010 00:33:15 +0300, Andrei Alexandrescu
<[email protected]> 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.
That was obvious and not what I really asked, but thanks anyway :)
--
Best regards,
Vladimir mailto:[email protected]