Optional parameters?

Dukc ajieskola at gmail.com
Wed Apr 4 18:24:36 UTC 2018


On Wednesday, 4 April 2018 at 15:44:34 UTC, Steven Schveighoffer 
wrote:
> See my original post:
>
>> I know I can do things like this:
>> 
>> void foo(int x) { return foo(nullable(x)); }
>
> -Steve

Oops, I read only the body of that function and thought it's a 
main function constructiong nullable when calling.

Well, short of defining some sort of mixin to do this 
automatically, no better ideas :(.


More information about the Digitalmars-d-learn mailing list