this is almost a workaround for the lack of named parameters

bearophile bearophileHUGS at lycos.com
Thu Mar 21 13:33:25 PDT 2013


Jacob Carlborg:

> Here's another workaround: 
> https://github.com/jacob-carlborg/mambo/blob/master/mambo/util/Reflection.d#L135

Maybe such two links should go in one page of the D wiki about 
lack of named parameters workarounds.

Eventually D should introduce a syntax for named arguments at the 
call point plus a syntax to deprecate argument names. It's not 
the most important thing that D currently lacks, but it's an 
improvement.

Bye,
bearophile


More information about the Digitalmars-d mailing list