Re: dynamically growable vector?
From: Michael Metcalf (metcalfmetcalf_at_compuserve.com)
Date: 03/03/05
- Next message: Jan Vorbrüggen: "Re: Which compiler is right?"
- Previous message: Tim Prince: "Re: Fortran now in the Great Language Shootout"
- In reply to: glen herrmannsfeldt: "Re: dynamically growable vector?"
- Next in thread: James Giles: "Re: dynamically growable vector?"
- Reply: James Giles: "Re: dynamically growable vector?"
- Reply: glen herrmannsfeldt: "Re: dynamically growable vector?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 3 Mar 2005 09:14:16 +0100
"glen herrmannsfeldt" <gah@ugcs.caltech.edu> wrote in message
news:d058qr$771$1@gnus01.u.washington.edu...
>
> (If I remember right, for Fortran ALLOCATABLE it is allocate,
> copy to temporary, free and reallocate original, copy back.
> This might have been fixed in 2003.)
Fixed in the sense that the syntax is simpler in simple cases. To extend a
rank-one array with lower bound 1 by 2 extra values, you can write, e.g.,
arr = [arr, v1, v2]
but, as has been pointed out by Richard, under the bonnet there is still the
sequence of operations you describe.
Regards,
Mike Metcalf
- Next message: Jan Vorbrüggen: "Re: Which compiler is right?"
- Previous message: Tim Prince: "Re: Fortran now in the Great Language Shootout"
- In reply to: glen herrmannsfeldt: "Re: dynamically growable vector?"
- Next in thread: James Giles: "Re: dynamically growable vector?"
- Reply: James Giles: "Re: dynamically growable vector?"
- Reply: glen herrmannsfeldt: "Re: dynamically growable vector?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|