Newsgroups: comp.lang.c Path: utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: const pointers Message-ID: <1988Apr5.215844.1838@utzoo.uucp> Organization: U of Toronto Zoology References: <1988Apr3.013733.28401@utzoo.uucp>, <1988Apr4.082020.1687@light.uucp> Date: Tue, 5 Apr 88 21:58:44 GMT > > ... const on a pointer does not mean that the > >thing pointed to is constant, just that attempts to modify it through that > ^^ > >pointer are illegal... > > Huh? If by `it' you mean the object pointed to by the const pointer, > your intepretation seems wrong... Combination of bad wording on my part and a misunderstanding on yours: I'm talking about "const foo *", which is the *useful* form of const pointer, whereas you're thinking of "foo *const". (Actually, before I get flamed on this, I'll concede that "foo *const" has uses... small ones, insufficient to justify its addition to the language in my opinion.) -- "Noalias must go. This is | Henry Spencer @ U of Toronto Zoology non-negotiable." --DMR | {allegra,ihnp4,decvax,utai}!utzoo!henry