objc.dg/method-2.m fix with the GNU runtime
Stan Shebs
shebs@apple.com
Mon Oct 29 09:33:00 GMT 2001
Nicola Pero wrote:
>
> One comment on the fix so it's recorded on the mailing list - the fix
> statically types `self' in a class method to be the class the method is
> part of. This maximes error checking in normal situations, but gets in
> the way if you want to redefine self in a class method to be something
> else. But in that case, you can still get the old behaviour of having
> self to be untyped id by simply casting self to id.
It would be nice to have a language specification to be a home for
comments like this. Sigh.
> Ok to commit the new two testcases and apply the patch ?
Yes please. Thanks!
Stan
More information about the Gcc-patches
mailing list