• 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
Re: Where is the global pointer 'index' declared in Foundation?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where is the global pointer 'index' declared in Foundation?


  • Subject: Re: Where is the global pointer 'index' declared in Foundation?
  • From: Sailor Quasar <email@hidden>
  • Date: Sat, 6 Dec 2003 17:38:50 -0500

On Saturday, December 6, 2003, at 04:55 PM, Sean McBride wrote:
I just discovered that there is a global variable named 'index' of
pointer type declared somewhere in Foundation; but I cant find it! If
you fire a new Foundation project with only that code:

#import <Foundation/Foundation.h>

int main()
{
return index;
}

the compiler will only warn you that the use of 'index' makes integer
from pointer without a cast. (Using a different name or commenting the
import yields an error, of course.)

...

Should I report a bug or what?
You could file a bug report about the compiler error message not being
very good. Then you can watch it sit there and never get fixed. :(

It's not a global variable; it's an ANSI C function. man 3 index

-- Sailor Quasar, High Codemaster of the Web, scourge of systems
MacOS is to Windows as Terminus is to Trantor.
Email: email@hidden
_______________________________________________
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.

References: 
 >Re: Where is the global pointer 'index' declared in Foundation? (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: Where is the global pointer 'index' declared in Foundation?
  • Next by Date: Crash on NSMenu
  • Previous by thread: Re: Where is the global pointer 'index' declared in Foundation?
  • Next by thread: -(BOOL)isFirewireDisk;(NSString*)path
  • Index(es):
    • Date
    • Thread