Dream Feature Regarding Default Arguments

Nick Sabalausky a at a.a
Sun Apr 6 18:00:52 PDT 2014


On Sunday, 6 April 2014 at 23:08:10 UTC, Frustrated wrote:
>
> How bout
>
> func(,,x,,y)

That isn't too bad (VB6 had it IIRC), but the caller still has to 
care about the order of the params they're ignoring. Ie if you 
have func([foo],[bar]) then you can't just pass in a one-param 
foo-only or bar-only without worrying about the unimportant 
detail of the arbitrary ordering (unlike with the overload 
approach).


More information about the Digitalmars-d mailing list