• 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: John Mikros <email@hidden>
  • Date: Fri, 16 Jun 2006 11:15:21 -0700

Well, that explains why it's not necessary.

It doesn't explain why it's not legal.


On Jun 15, 2006, at 7:56 PM, Greg Guerin wrote:

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:
40blizzard.com


This email sent to email@hidden

_______________________________________________ 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
References: 
 >Re: why aren't forward declared enums legal? (From: Greg Guerin <email@hidden>)

  • Prev by Date: Re: problem with cos ( pi/2 )
  • Next by Date: Re: why aren't forward declared enums legal?
  • Previous by thread: Re: why aren't forward declared enums legal?
  • Next by thread: Re: why aren't forward declared enums legal?
  • Index(es):
    • Date
    • Thread