Path: utzoo!mnetor!uunet!husc6!necntc!ima!haddock!karl From: karl@haddock.ISC.COM (Karl Heuer) Newsgroups: comp.lang.c Subject: Re: volatiles/consts inside structs in dpANS C Message-ID: <2956@haddock.ISC.COM> Date: 14 Mar 88 23:06:00 GMT References: <566@myrias.UUCP> <1988Mar13.005411.12592@utzoo.uucp> Reply-To: karl@haddock.ima.isc.com (Karl Heuer) Organization: Interactive Systems, Boston Lines: 10 In article <1988Mar13.005411.12592@utzoo.uucp> henry@utzoo.uucp (Henry Spencer) writes: >... So assigning to [an entire] struct with a const member is illegal. >Personally, I think such "buried qualifiers" should simply be illegal, since >they are useless... Doesn't sound useless to me. `struct {int; int const;}` has properties different from either `struct {int; int}` or `struct {int; int} const`: it gives you a struct in which one member is modifiable and the other is not. Karl W. Z. Heuer (ima!haddock!karl or karl@haddock.isc.com), The Walking Lint