This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Fix ObjC instance variable lookup in class methods
- From: Zack Weinberg <zack at codesourcery dot com>
- To: Ziemowit Laski <zlaski at apple dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>,objc-language at lists dot apple dot com
- Date: Fri, 29 Oct 2004 11:14:25 -0700
- Subject: Re: PATCH: Fix ObjC instance variable lookup in class methods
- References: <66E9B729-2934-11D9-8189-000D9330C50E@apple.com>
Ziemowit Laski wrote:
...
> While I was at it, I cleaned up c-typeck.c so that ObjC-related
> processing no longer takes place there. This should improve
> compile-time performance for plain C slightly. The decision whether
> an ivar or another C/C++ symbol should be used has now been moved to
> objc_lookup_ivar() itself (with the C/C++ symbol passed in as an
> additional parameter).
I like this. Clarify the comment a little, e.g.
/* In Objective-C, an instance variable (ivar) may be preferred to
whatever lookup_name found. */
and I'll approve the C part of this change -- but wait 24 hours in
case one of the official C maintainers (e.g. Joseph) disagrees.
zw