Default Argument Improvements?

Brian Byrne bdbyrne at
Sun Feb 4 10:44:24 PST 2007

Whyn Oop Wrote:

> Brian Byrne Wrote:
> > Handy, no?
> Please, just describe informally how a maintainer would have to
> evaluate the meaning of such codelines:
>   f(,,,4,2);
>   f(,,4.2);

Well, I guess it largely depends on your coding style. It may be a good idea to explicitly state it in your code that you are going to use default parameters in this case.

f( auto, auto, auto, 4, 2 );
f( auto, auto, 4.2 );

Similarity still exists, but the goal is much more explicit now.

Brian Byrne

More information about the Digitalmars-d-learn mailing list