July 17, 2015 Re: Template function that accept strings and array of strings | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | On Friday, 17 July 2015 at 12:58:58 UTC, Jacob Carlborg wrote: > I don't think I really understand how you want to use/call the function. Could you give an example with all the different types you want to call the function? My fault, I didn't test the variadic function enough and jumped to conclusion. It actually works well http://pastebin.com/R4EHuBLh |
July 17, 2015 Re: Template function that accept strings and array of strings | ||||
---|---|---|---|---|
| ||||
Posted in reply to badlink | On 2015-07-17 19:25, badlink wrote: > My fault, I didn't test the variadic function enough and jumped to > conclusion. > It actually works well http://pastebin.com/R4EHuBLh Cool :) Sometimes D developers think templates will be needed to solve everything. -- /Jacob Carlborg |
Copyright © 1999-2021 by the D Language Foundation