Re: printing logical variables as "true" and "false"



*** Hendrickson <***.hendrickson@xxxxxxx> wrote:

> I think the function has already been written.
> print *, merge("true", "false", logical_thingo)
>
> unless I've missed something.

Except that I'd expect a "user-friendly" version to have a simpler
interface, more along the line of logical_string(logical_thingo). Among
other things, the simpler form has the advantage of not requiring the
user to remember picky things like the padding that you mentioned in
your followup.

The implementation of my logical_thing might well have your merge
incantation as its sole executable line.

--
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
.


Quantcast