Re: printing logical variables as "true" and "false"
- From: nospam@xxxxxxxxxxxxx (Richard E Maine)
- Date: Mon, 28 Nov 2005 13:24:48 -0800
Richard E Maine <nospam@xxxxxxxxxxxxx> wrote:
> The implementation of my logical_thing might well have your merge
> incantation as its sole executable line.
Though on thinking slightly more on it, a more "interesting" version
might be one that returned a "minimum-width" length instead of padding.
Doing that is left as an exercise for the reader, the main part of the
excercise being to make sure to stay within the standard's requirements
for specification expressions. I haven't tried the exercise myself;
shouldn't be too hard, but spec expressions are tricky enough that I
wouldn't be confident of getting it right without pulling out the
standard to check.
I suppose that in f2003 one could just make the function result an
allocatable-length string, but that's too easy. :-) Sometimes I think
that allocatable-length strings, which were almost an unintended but
welcome side effect of other features, might turn out to be one of the
most popular new things in f2003.
--
Richard Maine | Good judgment comes from experience;
email: my first.last at org.domain| experience comes from bad judgment.
org: nasa, domain: gov | -- Mark Twain
.
- Follow-Ups:
- Re: printing logical variables as "true" and "false"
- From: *** Hendrickson
- Re: printing logical variables as "true" and "false"
- References:
- printing logical variables as "true" and "false"
- From: beliavsky
- Re: printing logical variables as "true" and "false"
- From: Richard E Maine
- Re: printing logical variables as "true" and "false"
- From: *** Hendrickson
- Re: printing logical variables as "true" and "false"
- From: Richard E Maine
- printing logical variables as "true" and "false"
- Prev by Date: Re: printing logical variables as "true" and "false"
- Next by Date: Re: printing logical variables as "true" and "false"
- Previous by thread: Re: printing logical variables as "true" and "false"
- Next by thread: Re: printing logical variables as "true" and "false"
- Index(es):