🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #6216

Re: const and struct pointers

#6216
From: Henry Spencer
Date: Sat, 24 Feb 1990 23:37
11 lines
900 bytes
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
Technical Details
Message-ID: <1990Feb24.233725.14071@utzoo.uucp>
Path: arc1-ca.pugleaf.net!utzoo!henry
References: <1214@watserv1.waterloo.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c,comp.lang.c
Path: arc1-ca.pugleaf.net!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