Re^2: Question on const applied to typedef'd pointer

Doug Gwyn gwyn at smoke.BRL.MIL
Wed Mar 1 19:24:48 AEST 1989


In article <2107 at solo11.cs.vu.nl> maart at cs.vu.nl (Maarten Litmaath) writes:
>How about applying `const' to the outer level? Seems natural, seems simple.

That's what happens, but it's not what ADO was after.

Your examples applied "const" to the INNER level; that is completely
contrary to the normal type scheme and runs counter to the notion of
a typedef name being a sort of "pre-packaged" type.



More information about the Comp.lang.c mailing list