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 09:16:39 +0100
If you want to be able to call a function outside of that translation unit
then you do indeed need to prototype (declare) your function in your header
file. Think of functions declared in the header as public and ones not
declared in the header as private.
So, my question is does the same / similar rule apply to Obj-C messages /
methods?
Brad
>
(i) for a moment, forget ObjC completely. We are in plain C,
>
and we speak
>
functions. Now,
>
>
- you don't have to declare a function;
>
- function name is sufficient so as the proper function is called;
>
- you have to beware though that the argument types and
>
return values are correct.
>
>
This is something you should know very well, in case you are
>
an experienced
>
C programmer. Right?