> >If only the first variant is allowed (with the named parameters in the
> >order declared in the prototype), then this would not affect code
> >generation at all - the designators could only be used for static error
> >checking.
> >
> >If the second variant is allowed, then the parameters could be re-ordered.
> 
> This is indeed very useful - Fortran has this since the Fortran 90
> standard, albeit without the dots (it's unambiguous in Fortran).

Right, same for Ada:

   foo (a => 1, b => 2, c => 3);
   foo (c => 3, b => 2, a => 1);

Arno

Reply via email to