home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / std / c / 2557 < prev    next >
Encoding:
Internet Message Format  |  1992-09-02  |  849 b 

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