• 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: why aren't forward declared enums legal?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: why aren't forward declared enums legal?


  • Subject: Re: why aren't forward declared enums legal?
  • From: Greg Guerin <email@hidden>
  • Date: Thu, 15 Jun 2006 19:56:01 -0700

John Mikros wrote:

>As long as you don't use -fshort-enums, the compiler should have everything
>it needs to know.

Google is your friend.

Keywords:
  forward declare enum C spec

Top result is:
  <http://docs.sun.com/source/816-2460/Language_Extensions.html>

  "4.2 ... Because enum definitions cannot reference one another, and no enum
   definition can cross-reference another type, the forward declaration of an
   enumeration type is never necessary. ..."

In short: convenience != necessity.

  -- GG


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: why aren't forward declared enums legal?
      • From: John Mikros <email@hidden>
  • Prev by Date: why aren't forward declared enums legal?
  • Next by Date: Re: Reporting distributed build bugs
  • Previous by thread: why aren't forward declared enums legal?
  • Next by thread: Re: why aren't forward declared enums legal?
  • Index(es):
    • Date
    • Thread