From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14044 invoked by alias); 11 Apr 2008 12:41:38 -0000 Received: (qmail 14009 invoked by uid 22791); 11 Apr 2008 12:41:38 -0000 X-Spam-Check-By: sourceware.org Received: from mail.cs.tut.fi (HELO mail.cs.tut.fi) (130.230.4.42) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 11 Apr 2008 12:41:02 +0000 Received: from amavis2.cs.tut.fi (amavis2.cs.tut.fi [130.230.4.70]) by mail.cs.tut.fi (Postfix) with ESMTP id 7ED522A1D; Fri, 11 Apr 2008 15:40:59 +0300 (EEST) Received: from mail.cs.tut.fi ([130.230.4.42]) by amavis2.cs.tut.fi (amavis2.cs.tut.fi [130.230.4.70]) (amavisd-maia, port 10024) with ESMTP id 00075-03; Fri, 11 Apr 2008 15:40:58 +0300 (EEST) Received: from modeemi.modeemi.cs.tut.fi (modeemi.modeemi.cs.tut.fi [130.230.72.134]) by mail.cs.tut.fi (Postfix) with ESMTP id 84BC72A15; Fri, 11 Apr 2008 15:40:56 +0300 (EEST) Received: from jolt.modeemi.cs.tut.fi (jolt.modeemi.cs.tut.fi [130.230.72.144]) by modeemi.modeemi.cs.tut.fi (Postfix) with ESMTP id 6F6D022209; Fri, 11 Apr 2008 15:40:26 +0300 (EEST) Received: by jolt.modeemi.cs.tut.fi (Postfix, from userid 16311) id 0FCEF501EF; Fri, 11 Apr 2008 15:40:25 +0300 (EEST) Date: Fri, 11 Apr 2008 12:41:00 -0000 From: Heikki Orsila To: gsl-discuss@sourceware.org Cc: Hongzheng Wang , help-gsl@gnu.org Subject: Re: [Help-gsl] GSL and C99 standard Message-ID: <20080411124025.GC24451@jolt.modeemi.cs.tut.fi> References: <87wsn5irwq.wl%bjg@network-theory.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <87wsn5irwq.wl%bjg@network-theory.co.uk> User-Agent: Mutt/1.5.11 Mailing-List: contact gsl-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gsl-discuss-owner@sourceware.org X-SW-Source: 2008-q2/txt/msg00016.txt.bz2 On Thu, Apr 10, 2008 at 05:41:25PM +0100, Brian Gough wrote: > I would like to keep C89 compatibility, which limits the extent to > which any new features can be used. Are there many users that can not support any C99 features? I think the the relevant question is which C99 features, not the whole feature set. For example, I would like to use named initializers for structures as they make code more maintainable and easier to read: C89: struct foo bar; memset(&bar, 0, sizeof bar); bar.name = value; C99: struct foo bar = {.name = value}; gcc has supported this feature for ages already.. -- Heikki Orsila heikki.orsila@iki.fi http://www.iki.fi/shd