Re: Are method declarations just comments?
Re: Are method declarations just comments?
- Subject: Re: Are method declarations just comments?
- From: Chris Gehlker <email@hidden>
- Date: Sun, 08 Jul 2001 06:47:23 -0700
On 7/8/01 6:30 AM, "David P. Henderson" <email@hidden> wrote:
>
And like C, as long as you define a function before you use it, the
>
compiler won't complain. In Objective-C, return types and parameter
>
types aren't as important as the method signature. The method signature
>
is myMethadWithData:andFlag:, the compiler will warn you about
>
mismatches but it won't stop you. Everything in Obj-C is dynamically
>
bound at runtime, so the runtime only cares that the method signatures
>
match not the types. Obj-C gives you all the rope you want with which
>
hang yourself.
Thanks, David.
--
Cogito Ergo Spud. - I think therefore I yam.