[J3] Allocatable function result

Van Snyder van.snyder at sbcglobal.net
Tue Nov 10 21:41:36 EST 2020


8.5.3 NOTE 1 says that the result of a function whose result variable
is allocatable isn't allocatable.

Assume function F has an allocatable result variable.

I hope that, under the covers, processors don't take this so literally
that in something like

  real, allocatable :: Y(:)

  y = f(x)

they copy the value instead of faking MOVE_ALLOC.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20201110/c1a43d66/attachment.htm>


More information about the J3 mailing list