Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "Brian G. Lucas" Newsgroups: comp.arch Subject: Re: Computer architects leaving Intel... Date: Mon, 2 Sep 2024 14:09:52 -0500 Organization: A noiseless patient Spider Lines: 25 Message-ID: References: <2024Aug30.161204@mips.complang.tuwien.ac.at> <2024Aug30.195831@mips.complang.tuwien.ac.at> <2024Aug31.170347@mips.complang.tuwien.ac.at> <8lcadjhnlcj5se1hrmo232viiccjk5alu4@4ax.com> <17d615c6a9e70e9fabe1721c55cfa176@www.novabbs.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 02 Sep 2024 21:09:53 +0200 (CEST) Injection-Info: dont-email.me; posting-host="aba5776a8df2ca87015643ecf11d7eee"; logging-data="3118932"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/lk6R62SZ783xYCU1PilVa" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:ESWKIC5keNB/1H6bJOO5N66b57c= In-Reply-To: Content-Language: en-US Bytes: 2383 I have the 1978 K&R. There appears to be no mention of memcpy(). On 9/2/24 12:59 PM, Thomas Koenig wrote: > MitchAlsup1 schrieb: >> On Mon, 2 Sep 2024 5:55:34 +0000, Thomas Koenig wrote: >> >>> George Neuner schrieb: >>> >>>> I'm not going to argue about whether UB in code is wrong. The >>>> question I have concerns what to do with something that explicitly is >>>> mentioned as UB in some standard N, but was not addressed in previous >>>> standards. >>>> >>>> Was it always UB? Or should it be considered ID until it became UB? >>> >>> Can you give an exapmple? >> >> Memcopy() with overlapping pointers. > > Does anybody have the first edition of K&R around to check what is > explicity stated there? > > If both were intended to have the same functionality, it would have > been strange to define both.