Re: About default parameters in variadic templates

2012-09-18 Thread Don Clugston
On 17/09/12 14:42, Andrej Mitrovic wrote: Related: http://d.puremagic.com/issues/show_bug.cgi?id=8676 A lot of code could be stripped if there was a way to set an optional last parameter for variadics. lockstep could then be written as: auto newLockstep(Args...)(Args args, StoppingPolicy

Re: About default parameters in variadic templates

2012-09-18 Thread Andrej Mitrovic
On 9/18/12, Don Clugston d...@nospam.com wrote: That just looks like a bug to me. Please enter it in Bugzilla. Ok: http://d.puremagic.com/issues/show_bug.cgi?id=8687 Hope Walter agrees with it.

About default parameters in variadic templates

2012-09-17 Thread Andrej Mitrovic
Related: http://d.puremagic.com/issues/show_bug.cgi?id=8676 This is something to think about for D3 (or maybe even D2 if it doesn't break code): it should be possible to inject default parameters in the function header rather than the body when using variadic templates. It would make