move_alloc for types holding allocatable members
Alberto Luaces
aluaces@udc.es
Thu Oct 8 19:06:00 GMT 2015
Steve Kargl writes:
> On Thu, Oct 08, 2015 at 06:18:19PM +0200, Alberto Luaces wrote:
>>
>> allocate(mytemp(20))
>> call move_alloc(mytemp, myarray)
>>
>
> What are you expecting to happen here?
Hi, Steve. I wanted to grow the array to 20 elements. My real code
works that way, since the length is not known beforehand, and it usually
gets bigger. Did I reverse the arguments?
--
Alberto
More information about the Fortran
mailing list