Re: Assumed-shape array of variable-length strings
- From: dpb <none@xxxxxxx>
- Date: Sat, 05 Jun 2010 10:02:48 -0500
Jovan Cormac wrote:
fj wrote:
This instruction is not legal : all the strings must have the same
length ! Your compiler has accepted it (extension) in padding the
shortest strings with spaces.
Correction : not legal in FORTRAN-95
Ok, thank you. Any possiblilty of a workaround then?
If the question is how to write legal (consistent w/ F95 Standard) array constructor for CHARACTER data, sure...pad all strings in the constructor to the same length.
Otherwise, do you mean to ask something different?
--
.
- Follow-Ups:
- Re: Assumed-shape array of variable-length strings
- From: Jovan Cormac
- Re: Assumed-shape array of variable-length strings
- References:
- Assumed-shape array of variable-length strings
- From: Jovan Cormac
- Re: Assumed-shape array of variable-length strings
- From: fj
- Re: Assumed-shape array of variable-length strings
- From: fj
- Re: Assumed-shape array of variable-length strings
- From: Jovan Cormac
- Assumed-shape array of variable-length strings
- Prev by Date: Re: Assumed-shape array of variable-length strings
- Next by Date: Re: Assumed-shape array of variable-length strings
- Previous by thread: Re: Assumed-shape array of variable-length strings
- Next by thread: Re: Assumed-shape array of variable-length strings
- Index(es):