Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: C pointer semantics with dynamically allocated struct Date: Sat, 03 Oct 2015 00:38:57 -0700 Organization: None to speak of Lines: 26 Message-ID: References: <6cd37536-cf9d-422a-aa05-b801ced9fb42@googlegroups.com> <8737zo8tjt.fsf@bsb.me.uk> <95573ef8-9cfc-427b-9ca3-e8cf87484b75@googlegroups.com> <87fv3o7a3i.fsf@bsb.me.uk> <6217ad04-8f37-40f4-a19b-7c2c32ccd3c5@googlegroups.com> <8943fe7b-b38f-4f14-a1f5-5bbf82adeeca@googlegroups.com> <560e8008.14601578@news.xs4all.nl> <874mi9s415.fsf@bsb.me.uk> <9e564d49-c531-420a-8d50-fe5fba789415@googlegroups.com> <87mvw1qggo.fsf@bsb.me.uk> <376c05c3-ee5a-4cc9-b910-6a9d753aa4f1@googlegroups.com> <877fn5qas8.fsf@bsb.me.uk> <9b5075ac-ac18-44d4-888b-89e8f022aa27@googlegroups.com> <87vbaoq4bo.fsf@bsb.me.uk> <9a154551-4b77-44d1-9c39-1951be7e3d22@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="945944de09706c9b4e29b53c9d2efdc2"; logging-data="21984"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18dIWgABdkR54bp/mQmfrQq" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:1FPZSpVOjKWS/0SFVRkNVWza8ZU= sha1:QgkbtNWUAYPjJDt5w5K8cx8cBis= Xref: csiph.com comp.lang.c:71659 supercat@casperkitty.com writes: > On Friday, October 2, 2015 at 5:43:49 PM UTC-5, Ben Bacarisse wrote: [...] >> Why the capital letters in "Strict Aliasing Rule"? It makes it sound >> like there is a well-known thing with that agreed name. > > C99 added a new rule which is commonly referred to using the phrase > "strict aliasing rule". Although the phrase is often written in lowercase, > I would suggest that because it is used to refer to a specific rule added > in C99 it is proper to regard the phrase as a proper noun when used to > refer to that new rule in particular, as opposed to any strict rule having > to do with aliasing. Exactly what new rule are you referring to? Can you cite a section number in N1256 or N1570? The phrase "strict aliasing" does not appear in the C99 or C11 standard. The rule that I think you may be referring to (restricting the kinds of lvalue that can be used to access an object's value) exists, with some changes in wording, in all three editions, C90, C99, and C11. -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"