Definition (Definition)

Define the storage for an identifier.

A definition is a declaration that also allocates storage for the item being declared.

For example:

new Array();

creates an empty Array object. As there is no indication of the likely size the array will require, no storage is allocated for array elements.

Now consider this:

new Array(10);

new Array("aaa", "bbb", "ccc");

Each of these declarations require some storage to be allocated. In the first entry, space for 10 elements is reserved in the array. In the second, there are three element pointers created and the storage for the three items as well.

Thus we have a definition.

See also:Argument, Compliance, Compound statement, Constraint, Declaration, Deprecated functionality, Diagnostic message, false, Function, function( ... ) ..., Implementation, Object, Parameter, RValue, true, Variable Declaration