Xref: utzoo comp.std.c:2501 comp.lang.c:26270 Newsgroups: comp.std.c,comp.lang.c Path: utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: const and struct pointers Message-ID: <1990Feb24.233725.14071@utzoo.uucp> Organization: U of Toronto Zoology References: <1214@watserv1.waterloo.edu> Date: Sat, 24 Feb 90 23:37:25 GMT In article <1214@watserv1.waterloo.edu> semicon@watsci.UUCP (Robert Adsett) writes: >...If I either add const to the prototype or remove it from >the argument to junk it compiles without error. Is there some reason >that 'const double *b' should be treated differently from 'const >struct qwert *c'? ... I'd diagnose this as a buggy or obsolete compiler. The semantics of const in ANSI C were a moving target for quite some time. -- "The N in NFS stands for Not, | Henry Spencer at U of Toronto Zoology or Need, or perhaps Nightmare"| uunet!attcan!utzoo!henry henry@zoo.toronto.edu