• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Conflicting Namespaces on the Language Level
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: NSFilesPromisePboardType
  • Next by Date: Re: Conflicting Namespaces on the Language Level
  • Previous by thread: Re: When will drag'n'drop to the Finder work?
  • Next by thread: Re: Conflicting Namespaces on the Language Level
  • Index(es):
    • Date
    • Thread