[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New warnings (hopefully) in gcc 3.4

From: David Ayers
Subject: Re: New warnings (hopefully) in gcc 3.4
Date: Wed, 03 Sep 2003 13:03:08 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4b) Gecko/20030507

Nicola Pero wrote:

[...] The @encode mechanism would still not recognize that -(id)method:(NSSize)aSize and -(id)method:(NSPoint)aPoint are equivalent.

Hmmm.  Are they really equivalent ?  The argument types seem to be quite
OK, I was wrong :-o ;
@interface Foo : NSObject -(NSPoint) foo; @end
@interface Bar : NSObject -(NSSize) foo; @end
   id tmp = [Foo new];
   NSSize  s=[tmp foo];
   NSPoint p=[tmp foo];
never worked before either.

(But I'm still not comfortable with the IMP assumption....)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]