This is the mail archive of the
egcs@egcs.cygnus.com
mailing list for the EGCS project. See the EGCS
home page for more information.
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]
Re: partly bracketed initializer ?
- To: "Martin v. Loewis" <martin@mira.isdn.cs.tu-berlin.de>
- Subject: Re: partly bracketed initializer ?
- From: Alexandre Oliva <oliva@dcc.unicamp.br>
- Date: 20 Feb 1999 14:27:19 -0200
- Cc: bob@werken.com, egcs@egcs.cygnus.com
- Delivered-To: listarch-egcs@egcs.cygnus.com
- Delivered-To: mailing list egcs@egcs.cygnus.com
- In-Reply-To: "Martin v. Loewis"'s message of "Sat, 20 Feb 1999 11:21:07 +0100"
- Mailing-List: contact egcs-help@egcs.cygnus.com; run by ezmlm
- References: <Pine.LNX.3.96.990220032655.7438P-100000@exeter.exeter.org> <199902201021.LAA08873@mira.isdn.cs.tu-berlin.de>
- Sender: owner-egcs@egcs.cygnus.com
- Sender: oliva@araguaia.dcc.unicamp.br
- User-Agent: Gnus/5.070076 (Pterodactyl Gnus v0.76) XEmacs/20.4 (Emerald)
On Feb 20, 1999, "Martin v. Loewis" <martin@mira.isdn.cs.tu-berlin.de> wrote:
> Since we are talking about a static member, it is zero-initialized
> anyway, and therefore it happens to work. I'm not sure about the
> constraints on mutex_t objects - if you can make them automatic
> variables, you might run into problems.
[dcl.init.aggr]/7 says that aggregate members that are not explicitly
initialized shall be default-initialized. Default initialization for
scalar types is zero-initialization, so there should be no problem.
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva aoliva@{acm.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
Universidade Estadual de Campinas, SP, Brasil