Leigh Johnston said:
On 23/02/2011 15:55, Paul wrote:
Imagine a team of demolition men in a large house knocking hell out of
plaster walls with sledgehammers. But instead of sleadghammers they are
holding the idiots in here by the feet, using their heads to demolish
the wall.
I find this a very soothing thought.
Perhaps it would knock some sense into those idiots, it certainly
couldn't do any harm
int x;
'x' is an object; 'x' is an uninitialized object.
Not according to the ISO C++ standard you IDIOT.
When you understand the basic concepts you may be declassified from
idiot status.
_ __________________________________________
1 [Note: this clause presents the basic concepts of the C + + language.
It explains the difference between an
object and a name and how they relate to the notion of an lvalue. It
introduces the concepts of a declaration
and a definition and presents C + +'s notion of type, scope, linkage,
and storage duration. The mechanisms
for starting and terminating a program are discussed. Finally, this
clause presents the fundamental types of
the language and lists the ways of constructing compound types from
these.
2 This clause does not cover concepts that affect only a single part of
the language. Such concepts are discussed
in the relevant clauses. ]
3 An entity is a value, object, subobject, base class subobject, array
element, variable, function, instance of a
function, enumerator, type, class member, template, or namespace.
4 A name is a use of an identifier (2.10) that denotes an entity or
label (6.6.4, 6.1). A variable is introduced
by the declaration of an object. The variable's name denotes the object.