Out parameters and initialization

Unknown W. Brackets unknown at simplemachines.org
Fri Feb 24 00:01:30 PST 2006


I may have been unclear, but this is the thing I was most specifically 
referencing; that there was no defined behavior for this in the spec's 
wording.

As for default parameters (initializers) being defined at all, that's in 
the declarations page:

Parameter:
         Declarator
         Declarator = AssignExpression
         InOut Declarator
         InOut Declarator = AssignExpression

This presumably implies it has the same semantics as 
DeclaratorInitializer, but there's no explicit definition.  Further, it 
is interesting to me that AssignExpression is used instead of 
Initializer; this may actually mean different semantics (and not just 
that you cannot use array/struct literals and void here.)

-[Unknown]


> Where exactly are default parameters for functions documented?



More information about the Digitalmars-d-bugs mailing list