On 10/5/18 5:41 AM, Kagamin wrote:
On Thursday, 4 October 2018 at 12:51:27 UTC, Shachar Shemesh wrote:
More to the point, however, expanding the call to the second form means that I can *never* supply non-default values to arg1 and arg2.

You wrote it yourself: f!()(true, 'S')

This is a terrible workaround. It looks OK with no vararg parameters, but lousy if you have any.

i.e.:

f(arg1, arg2, arg3, true, 'S')

becomes:

f!(typeof(arg1), typeof(arg2), typeof(arg3))(arg1, arg2, arg3, true, 'S');

-Steve

Reply via email to