ANSI C suggestions
Henry Spencer
henry at utzoo.UUCP
Wed Oct 17 05:39:38 AEST 1984
> ... I suspect it [const] works as you suggest - i.e., an implementation
> can ignore it if it chooses.
Not quite. There are things that you cannot do to a variable of const
type -- e.g., use it on the left-hand-side of an assignment operator --
and these must be diagnosed even if const things are not special in any
other way.
--
Henry Spencer @ U of Toronto Zoology
{allegra,ihnp4,linus,decvax}!utzoo!henry
More information about the Comp.lang.c
mailing list