Variadic parameter of length 1

Dominikus Dittes Scherkl via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Aug 20 08:34:28 PDT 2014


On Wednesday, 20 August 2014 at 15:26:14 UTC, monarch_dodra wrote:
> AFAIK, it's a historical workaround to accept T as either alias 
> or not alias, as varargs have "auto alias". EG:
>
> foo!int //OK
> foo!"hello" //OK too

Ah, ok.
And why historical? Is that not necessary anymore? What better 
solution is there today?


More information about the Digitalmars-d-learn mailing list