Are method declarations just comments?
Are method declarations just comments?
- Subject: Are method declarations just comments?
- From: Chris Gehlker <email@hidden>
- Date: Sat, 07 Jul 2001 23:52:28 -0700
Hi everyone,
I'm pretty new to Cocoa, just working my way through "Learning Cocoa" in
fact. I noticed that the book was having me add methods in .m files without
declaring them in the corresponding .h file and the programs were still
compiling and running w/o warnings. So I went back and commented out method
declarations and even changed them so they declared the wrong type of
arguments. Again it didn't seem to matter. I'm beginning to fear that
they're just comments. Someone say it isn't so.
--
When I was a boy I was told that anybody could become President. Now I'm
beginning to believe it. -Clarence Darrow, lawyer and author (1857-1938)