bug-gnustep
[Top][All Lists]
Advanced

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

Re: [PATCH] gnustep-gui cleanups


From: Benhur Stein
Subject: Re: [PATCH] gnustep-gui cleanups
Date: Wed, 5 Feb 2003 09:48:09 -0200
User-agent: Internet Messaging Program (IMP) 3.0

Citando Nicola Pero <nicola@brainstorm.co.uk>:

> If anyone has any brilliant idea on how to remove the warning, it's
> appreciated.

This is something I never understood.

In the code below:

#include <Foundation/NSObject.h>

@interface X : NSObject
+ (int)a;
@end
@interface Y : NSObject
+ (float)a;
@end

int main()
{
  int v;
  v = [X a];
}

Why, when compiling the last line the compiler does not know that X
can only answer to one of the two +a messages? What is the type of
X when this is being compiled?

Benhur




reply via email to

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