Skip navigation.
 
mldeclaring instance variable to be a function
FROM : Roland Silver
DATE : Sat Jul 22 16:21:10 2006

In an @interface declaration, how do I declare an instance variable 
foo to be a function with no arguments returning int?
I've tried
(int (void))foo;
and
int (void)*foo;
which yield the error message
parse error before '(' token
and
int (void)foo;
and
int (void)*foo;
which yield
parse error before 'void'

-- Roland Silver <<email_removed>>

Related mailsAuthorDate
mldeclaring instance variable to be a function Roland Silver Jul 22, 16:21
mlRe: declaring instance variable to be a function James Bucanek Jul 22, 16:48