www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - C-style function pointers

reply Aaron P <viautbellum gmail.com> writes:
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. :/
Nov 11 2011
parent =?ISO-8859-1?Q?Alex_R=F8nne_Petersen?= <xtzgzorex gmail.com> writes:
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
Nov 11 2011