• 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
Compiler Warning City
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Compiler Warning City


  • Subject: Compiler Warning City
  • From: G Douglas Davidson <email@hidden>
  • Date: Thu, 24 Oct 2002 17:20:40 -0400

Is there any way to use type "id" and not get two compiler warnings per usage?

1. warning: cannot find method
2. warning: return type for "whatever:" defaults to id

There are some times where I don't want or can't easily use static typing, and it would be really nice if the compiler could say "Hey, its type 'id', that means he does not want warnings about methods (which would be impossible anyway) and warnings about return types (which would also be impossible.)" Ideally I'd like the compiler to check on the static stuff and not on the type "id" stuff.

Is this possible?

--
G. Douglas Davidson | CityNet, Inc.
email@hidden | Pittsburgh, PA
voice: 412.481.5406 | fax: 412.431.1315
_______________________________________________
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.

  • Follow-Ups:
    • Re: Compiler Warning City
      • From: Ondra Cada <email@hidden>
    • Re: Compiler Warning City
      • From: Greg Titus <email@hidden>
    • Re: Compiler Warning City
      • From: David Remahl <email@hidden>
  • Prev by Date: Re: Updating Minimized Windows
  • Next by Date: Re: Simple Quicktime View Example
  • Previous by thread: Re: Security framework refuses to work at all
  • Next by thread: Re: Compiler Warning City
  • Index(es):
    • Date
    • Thread