• 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
RE: Q's about Obj-C
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Q's about Obj-C


  • Subject: RE: Q's about Obj-C
  • From: "Smith, Bradley" <email@hidden>
  • Date: Tue, 16 Oct 2001 11:13:23 +0100

> SB> If you want to be able to call a function outside of that
> translation
> SB> unit then you do indeed need to prototype (declare) your
> function in your
> SB> header file.
>
> That's not true.
>
Of course you are correct. The scenario I had in mind was one programmar
creating a C library for use by someone else. Typically any functions he/she
wanted to be available to clients would be prototyped in the header and any
private ones would not. The client would have to 'know' the signature of
each operation in order to use it effectively and not receive 'assuming
extern int' linker warnings.

Of course making them static ensures the client cannot use them even were
they able to guess the signature.

I stand corrected.

Brad


  • Follow-Ups:
    • Re: Q's about Obj-C
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Re: Q's about Obj-C
  • Next by Date: Re: Dragging examples?
  • Previous by thread: Re: Q's about Obj-C
  • Next by thread: Re: Q's about Obj-C
  • Index(es):
    • Date
    • Thread