Compile delegate with enum into proper function?

Salih Dincer salihdb at hotmail.com
Sun May 8 06:16:38 UTC 2022


Either we didn't understand the question, or this is not what 
you're talking about:

On Sunday, 8 May 2022 at 03:58:06 UTC,
Tejas wrote:
> If there is only one possible value for the  overload, is there 
> an issue with using default arguments?
> ```d
> int foo(int x, int a = 1) {
>     return x + a;
> }
> ```

Are the default arguments not enough for you?

SDB at 79


More information about the Digitalmars-d-learn mailing list