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: 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