This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Objective-C : Do not accept an object as parameter to a method
- From: Devang Patel <dpatel at apple dot com>
- To: Nicola Pero <nicola at brainstorm dot co dot uk>
- Cc: Zack Weinberg <zack at codesourcery dot com>, gcc-patches at gcc dot gnu dot org
- Date: Fri, 28 Jun 2002 12:16:22 -0700
- Subject: 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