RE: Q's about Obj-C
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