Conflicting Namespaces on the Language Level
Conflicting Namespaces on the Language Level
- Subject: Conflicting Namespaces on the Language Level
- From: email@hidden
- Date: Sat, 14 Sep 2002 19:34:21 -0400
GCC 3.1 does not compile code as it should (at least from what I have
seen).
This error is produced
cannot convert `_objc_class*' to `objc_object*' in argument passing
For this code:
@interface ClassThatShouldCompile: NSObject
{
id dictionary;
}
- (id) init;
@end
@implementation ClassThatShouldCompile: NSObject
- (id) init
{
[super init];
dictionary = [NSDictionary dictionary]; //This causes the problem.
return self;
}
@end
Whenever the instance variable is changed to a different name, the code
will compile. Also, this only seems to happen with NSDictionary objects.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.