Re: add a0 format to language to print trimmed character variables
- From: gary.l.scott@xxxxxxxx
- Date: 1 May 2007 14:09:26 -0700
On May 1, 3:24 pm, Clive Page <j...@xxxxxxxxxxxx> wrote:
In message <4q6Zh.1911$tp5.1...@xxxxxxxxxxxxxxxxxxxxxxxxxx>, Gary Scott
<garylsc...@xxxxxxxxxxxxx> writes
In order to be analogous to I0 though wouldn't it need to trim both
leading and trailing spaces? I don't think that would be the usual
desire though, but maybe you could specify '0a0' to trim leading and
trailing spaces.
I don't there such a pressing need - I0 only removes leading spaces
(there are no trailing ones). A0 would only trim trailing spaces (can
use ADJUSTL in the unusual case of wanting to trim leading ones as
well).
I admit it would be a minor inconsistency in the language, but not
unlike the need to use 123_kind for an integer constant, but
kind_"string" for a character constant. People seem to cope with that.
If you're going to the trouble to introduce a trailing space trim
edit, I see no reason not to introduce a similar leading space trim
edit. I agree that it would be needed less frequently, but that's no
reason not to add it when it would be so easy to do so and provide a
more complete solution.
--
Clive Page
.
- Follow-Ups:
- Re: add a0 format to language to print trimmed character variables
- From: Clive Page
- Re: add a0 format to language to print trimmed character variables
- References:
- Re: add a0 format to language to print trimmed character variables
- From: Clive Page
- Re: add a0 format to language to print trimmed character variables
- Prev by Date: Re: add a0 format to language to print trimmed character variables
- Next by Date: Re: I/O in PURE and ELEMENTAL procedures in Fortran 2008
- Previous by thread: Re: add a0 format to language to print trimmed character variables
- Next by thread: Re: add a0 format to language to print trimmed character variables
- Index(es):
Relevant Pages
|