C-style function pointers

Alex Rønne Petersen xtzgzorex at gmail.com
Fri Nov 11 01:58:57 PST 2011


On 11-11-2011 11:54, Aaron P wrote:
> This is a little advanced for me, but I'd rather fix that one line in a
> library somewhere than compile with -d.
>
> I get an error message "C-style function pointer and pointer to array
> syntax is deprecated. Use 'function' to declare function pointers."
>
> Can someone explain how this keyword is used? Given its name, it's
> understandably difficult to search for. :/

See "Delegates, Function Pointers, and Closures" at 
http://www.d-programming-language.org/function.html.

- Alex


More information about the Digitalmars-d-learn mailing list