home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!world!ksr!jfw
- From: jfw@ksr.com (John F. Woods)
- Newsgroups: comp.std.c
- Subject: Re: int const * p;
- Message-ID: <15459@ksr.com>
- Date: 2 Sep 92 15:09:25 EDT
- References: <180188INNmtc@fbi-news.Informatik.Uni-Dortmund.DE> <181tsmINN8uh@fbi-news.Informatik.Uni-Dortmund.DE> <15441@ksr.com> <la9uonINNp9m@exodus.Eng.Sun.COM>
- Sender: news@ksr.com
- Lines: 13
-
- linden@positive.Eng.Sun.COM (Peter van der Linden) writes:
- >John omitted only the reference to the manual, namely
- >section 3.5.3 "Type Qualifiers". It's not clear why a
- >meaningful construct, like a constant pointer to a constant value
- >is precluded.
-
- That construct isn't precluded;
-
- const int * const a;
-
- is OK. That declaration has two separate qualifier lists: one associated with
- the type (int *) and one associated with the variable, essentially separated
- by the *.
-