🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #1245

Re: int const * p;

#1245
From: John F. Woods
Date: Wed, 02 Sep 1992 19:09
13 lines
872 bytes
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 *.
Technical Details
Message-ID: <15459@ksr.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!world!ksr!jfw
References: <180188INNmtc@fbi-news.Informatik.Uni-Dortmund.DE> <181tsmINN8uh@fbi-news.Informatik.Uni-Dortmund.DE> <15441@ksr.com> <la9uonINNp9m@exodus.Eng.Sun.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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