• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
declaring instance variable to be a function
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: declaring instance variable to be a function
      • From: James Bucanek <email@hidden>
  • Prev by Date: Re: Writing application without Interface Builder
  • Next by Date: Re: Root launched daemons and distributed objects clash?
  • Previous by thread: Re: Root launched daemons and distributed objects clash?
  • Next by thread: Re: declaring instance variable to be a function
  • Index(es):
    • Date
    • Thread