Path: utzoo!attcan!uunet!mcvax!hp4nl!botter!star.cs.vu.nl!maart From: maart@cs.vu.nl (Maarten Litmaath) Newsgroups: comp.lang.c Subject: Re^2: Question on const applied to typedef'd pointer Message-ID: <2107@solo11.cs.vu.nl> Date: 28 Feb 89 15:30:10 GMT References: <9078@elsie.UUCP> <9709@smoke.BRL.MIL> <9081@elsie.UUCP> <9748@smoke.BRL.MIL> Organization: V.U. Informatica, Amsterdam, the Netherlands Lines: 17 gwyn@smoke.BRL.MIL (Doug Gwyn ) writes: \... -- there can be many levels within \a type at which "const" could be applied, but the typedef name has \only two adjacent sides as possible slots for sticking in "const", \not enough for all the possible levels. How about applying `const' to the outer level? Seems natural, seems simple. typedef char *BAR; typedef BAR *FOO; `const FOO baz' -> `const BAR *baz' -> `const char **baz' -- "Those who do not understand Henry |Maarten Litmaath @ VU Amsterdam: Spencer are condemned to reinvent DOS." |maart@cs.vu.nl, mcvax!botter!maart