cannot pass argument `& callback` of type `extern (C) int function()` to parameter `extern (C) int function()`

Daas user at test.test
Wed May 27 11:35:18 UTC 2026


> That defines a function pointer with old K&R C-style variadic 
> functions. Try:
>
> ```C
> typedef int(*fp)(void);
> ```
>
> The conversion from K&R variadic to void parameter list should 
> probably be allowed by the compiler, and if not, at the very 
> least that uninformative error message should be improved. 
> Filed as https://github.com/dlang/dmd/issues/23177

Thank you!


More information about the Digitalmars-d-learn mailing list