This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Preserve ObjC type-casts in C++'s build_c_cast()
- From: David Ayers <d dot ayers at inode dot at>
- To: Ziemowit Laski <zlaski at apple dot com>
- Cc: Mark Mitchell <mark at codesourcery dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 10 Sep 2004 12:13:15 +0200
- Subject: Re: PATCH: Preserve ObjC type-casts in C++'s build_c_cast()
- References: <24763C4E-02CC-11D9-B925-000393673036@apple.com>
Ziemowit Laski wrote:
> This patch is analogous to one I installed in the C front-end a while
> back, after much discussion as I recall. :-) To recap: ObjC types
> differing only in protocol conformance (e.g., 'NSObject *' vs.
> 'NSObject <Foo> *') will appear equivalent to the C++ front-end,
> which is actually fine for most things, but not casts, since we want
> to retain the protocol information.
I'm a bit paranoid about the "which is actually fine for most things,
but not casts" as there are other cases where we want to retain protocol
information. But I'll quietly assume that this precaution is taken
elsewhere also. (Like a true variable declared 'NSObject <Foo> *' that
it will use/prefer the protocol's signature, right?
Cheers,
David