Function with default parameters

Philippe Sigaud philippe.sigaud at gmail.com
Sat Sep 18 13:39:51 PDT 2010


>
>
> My main problem with these solutions is that they're largely runtime
> solutions. Not that calling a function with named parameters is very likely
> to happen in an inner loop, now I think of it...
>

I imagined the foo("b", 100, "d", true) version to be largely CT: variadic
list, testing and extracting done at CT.
As for the one accepting AAs, I don't know.

Philippe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20100918/63723ca7/attachment.html>


More information about the Digitalmars-d-learn mailing list