How does calling function pointers work?

Rene Zwanenburg renezwanenburg at gmail.com
Mon Nov 12 16:25:13 UTC 2018


On Monday, 12 November 2018 at 16:08:28 UTC, helxi wrote:
> As far as I understand, calling a function pointer with an 
> argument in D looks like:
>
>     call(&fnptr, argTofn0, argTofn1, argTofn3);

Idk where you got that syntax from, but there's no syntactic 
difference between calling normal functions and function pointers:

https://run.dlang.io/is/I6u0rg



More information about the Digitalmars-d-learn mailing list