public inbox for gsl-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Brian Gough <bjg@network-theory.co.uk>
To: Fleur Kelpin <fleur@bio.vu.nl>
Cc: gsl-discuss@sources.redhat.com
Subject: Re: gsl_vector_const_view: pointer to constant or constant pointer
Date: Sun, 11 Aug 2002 15:32:00 -0000	[thread overview]
Message-ID: <15702.57994.463289.495474@debian> (raw)
In-Reply-To: <Pine.GSO.4.44.0208100523410.15912-100000@ursus>

Fleur Kelpin writes:
 > Am I missing something or can/could/should this be fixed?
 > (I think this can be done by moving the const inside the struct:
 > 
 > typedef struct
 > {
 >   const gsl_vector vector;
 > } _gsl_vector_const_view;

It's not possible to initialise the struct element with this form in
ANSI C (although it is possible in gcc).  This is why the const'ing is
done at a higher level in a wrapper.


  parent reply	other threads:[~2002-08-11 22:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-09 21:20 Fleur Kelpin
2002-08-09 23:29 ` Fleur Kelpin
2002-08-11  7:46 ` M Joonas Pihlaja
2002-08-11 15:32 ` Brian Gough [this message]
2002-08-12 12:05   ` Fleur Kelpin
2002-08-13 11:14     ` Brian Gough

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=15702.57994.463289.495474@debian \
    --to=bjg@network-theory.co.uk \
    --cc=fleur@bio.vu.nl \
    --cc=gsl-discuss@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).