This is the mail archive of the
gsl-discuss@sourceware.org
mailing list for the GSL project.
Re: [Help-gsl] GSL and C99 standard
- From: Heikki Orsila <shd at modeemi dot fi>
- To: gsl-discuss at sourceware dot org
- Cc: Hongzheng Wang <wanghz at gmail dot com>, help-gsl at gnu dot org
- Date: Fri, 11 Apr 2008 15:40:25 +0300
- Subject: Re: [Help-gsl] GSL and C99 standard
- References: <b954b2060804090947j2574cf96y4ce9262b2fd55e77@mail.gmail.com> <87wsn5irwq.wl%bjg@network-theory.co.uk>
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