Path: ...!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lawrence D'Oliveiro Newsgroups: comp.lang.fortran,comp.lang.c Subject: Re: Is there a way in Fortran to designate an integer value as integer*8 ? Date: Sun, 27 Oct 2024 21:01:40 -0000 (UTC) Organization: A noiseless patient Spider Lines: 26 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 27 Oct 2024 22:01:40 +0100 (CET) Injection-Info: dont-email.me; posting-host="4f190434f24fb4ba42078e50c2625044"; logging-data="637591"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19JLBeInUjV7t2MUUO1oMAu" User-Agent: Pan/0.160 (Toresk; ) Cancel-Lock: sha1:MvXV3WVz/N1nMvnc8+Ux0SUmRS0= Bytes: 2961 On Sun, 27 Oct 2024 08:05:47 -0000 (UTC), Thomas Koenig wrote: > Lawrence D'Oliveiro schrieb: >> >> On Sat, 26 Oct 2024 21:38:38 -0000 (UTC), Thomas Koenig wrote: >> >>> Lawrence D'Oliveiro schrieb: >>> >>>> On Sat, 26 Oct 2024 11:51:42 -0000 (UTC), Thomas Koenig wrote: >>>> >>>>> The "parameter adjustment" above is explicitly listed as undefined >>>>> behavior, in annex J2 of n2596.pdf (for example): >>>>> >>>>> "Addition or subtraction of a pointer into, or just beyond, an array >>>>> object and an integer type produces a result that does not point >>>>> into, or just beyond, the same array object (6.5.6)." >>>> >>>> Read it again: note the qualification “that does not point into, or >>>> just beyond, the same array object”. So long as it *does* point >>>> “into, or just beyond, the same array object”, it is fine. >>> >>> What you are writing is equivalent to >> >> You don’t understand what pointer arithmetic means, do you? Hey, look! Somebody who doesn’t understand how pointer arithmetic works!