Sujet : Re: Is there a way in Fortran to designate an integer value as integer*8 ?
De : lynnmcguire5 (at) *nospam* gmail.com (Lynn McGuire)
Groupes : comp.lang.fortran comp.lang.cDate : 28. Oct 2024, 23:58:08
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vfp4u1$16va4$3@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
User-Agent : Mozilla Thunderbird
On 10/27/2024 4:01 PM, Lawrence D'Oliveiro wrote:
On Sun, 27 Oct 2024 08:05:47 -0000 (UTC), Thomas Koenig wrote:
Lawrence D'Oliveiro <ldo@nz.invalid> schrieb:
>
On Sat, 26 Oct 2024 21:38:38 -0000 (UTC), Thomas Koenig wrote:
>
Lawrence D'Oliveiro <ldo@nz.invalid> 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!
Are you 12 years old ?
Lynn