Re: why aren't forward declared enums legal?
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