Re: Are method declarations just comments?
Re: Are method declarations just comments?
- Subject: Re: Are method declarations just comments?
- From: Andreas Monitzer <email@hidden>
- Date: Mon, 9 Jul 2001 20:32:35 +0200
On Monday, July 9, 2001, at 08:07 , Peter Ammon wrote:
Unless I'm mistaken, Objective-C is actually more lax about requiring
function declarations. For example, C requires that variadic functions
(that is, functions with a variable number of arguments like printf) be
prototyped, whereas AFAIK Objective-C places no such requirements on
variadic methods (e.g. arrayWithObjects:)
I never really programmed C without function declarations, but AFAIK all
non-declared functions are treated with variable arguments like
int func(...)
andy
--
Discussion forthcoming.