Re: printing logical variables as "true" and "false"
- From: "Nestor Grion" <ngrion@xxxxxxxxx>
- Date: 28 Nov 2005 22:02:28 -0800
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
.
- Follow-Ups:
- Re: printing logical variables as "true" and "false"
- From: Richard E Maine
- 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
- 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: James Van Buskirk
- Re: printing logical variables as "true" and "false"
- From: Nestor Grion
- Re: printing logical variables as "true" and "false"
- From: Richard Maine
- printing logical variables as "true" and "false"
- Prev by Date: Re: printing logical variables as "true" and "false"
- Next by Date: RatFor
- Previous by thread: Re: printing logical variables as "true" and "false"
- Next by thread: Re: printing logical variables as "true" and "false"
- Index(es):