[J3] Changing address of an allocatable on assignment when shapes match
Steve Lionel
steve at stevelionel.com
Tue Aug 27 06:42:02 EDT 2019
On Tue, Aug 27, 2019 at 3:32 AM Anton Shterenlikht via J3 <
j3 at mailman.j3-fortran.org> wrote:
>
>
> > On 23 Aug 2019, at 23:41, Bill Long via J3 <j3 at mailman.j3-fortran.org>
> wrote:
> > None of the 4 implementations ...
>
> I haven't encountered LOC() before.
> Seems it's a popular extension to the standard,
> implemented in at least 4 processors - maybe more?
>
> 1. For extensions like LOC - how does one know that LOC
> is doing the same thing in all those 4 processors?
>
> 2. If LOC is so popular (and useful?) why not standardise it in F202X?
>
It’s spelled TRANSFER(C_LOC(x),0_C_INTPTR_T) . C_LOC was expanded to be
defined for non-interoperable objects. Do keep in mind that Fortran tries
hard to steer away from implementation details.
Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20190827/d36b3705/attachment.html>
More information about the J3
mailing list