This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Objective-C : Do not accept an object as parameter to a method



On Thursday, June 27, 2002, at 03:02 AM, Nicola Pero wrote:

I wonder why we need that?
Objective-C does not allow statically allocated objects.
And this is only for class and instance methods. It is not for normal C
like functions.

I can see your point in generating an error in this case ... but why the
exception for normal C like functions ?


I wanted to say -- We want to allow passing structures by value in case of a
normal C function.

Devang

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]