declaring instance variable to be a function
declaring instance variable to be a function
- Subject: declaring instance variable to be a function
- From: Roland Silver <email@hidden>
- Date: Sat, 22 Jul 2006 08:21:10 -0600
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@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden