discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: function pointer


From: Richard Frith-Macdonald
Subject: Re: function pointer
Date: Mon, 31 Jul 2006 15:23:20 +0100


On 31 Jul 2006, at 15:17, Clebson Abati Graeff wrote:

I want to set a function pointer passing it to an object. I think it
would be something like this

-(int) setPotential: (double)(*potential)(double r, void * par);

but the compiler returns

error: syntax error before '(' token

I can't figure out where is the problem. Someone have any idea? Thanks.


-(int) setPotential: (double (*)(double r, void * par)) potential;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]