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



Richard Maine wrote:

" ...you appear to be assuming that the compiler's internal
representation of .true. and .false. are the same as the internal
representations of the integers 0 and 1. This is *NOT* a
standard-conforming assumption... "

OK. I continue learning...

I believe that the conversions (T=>1, F=>0) are useful and frequent. I
suppose that the correct form is (within an arithmetical expression):

merge(1,0,logical_var)

Two questions. Why standar does not establish an implicit conversion?
This does not diminish the utility of the logical variables (integers
are used)?

Thanks

Néstor Grion

.


Quantcast