• 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
Auto-init of constant struct members to 0???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Auto-init of constant struct members to 0???


  • Subject: Auto-init of constant struct members to 0???
  • From: Scott Ribe <email@hidden>
  • Date: Fri, 05 Jan 2007 15:06:22 -0700
  • Thread-topic: Auto-init of constant struct members to 0???

According to GCC 4 this is OK:

struct s { int foo; };
struct s mys = {};

But this isn't:

struct s { const int foo; };
struct s mys = {};

Is this correct?

--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice


 _______________________________________________
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

  • Prev by Date: Re: Can't debug Carbon app now!?
  • Next by Date: Different classes instantiated from templates SHARE static members!!!
  • Previous by thread: Re: Can't debug Carbon app now!?
  • Next by thread: Different classes instantiated from templates SHARE static members!!!
  • Index(es):
    • Date
    • Thread