<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Feb 28, 2013, at 11:47 AM, N.M. Maclaren wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On Feb 28 2013, Craig Rasmussen wrote:<br><blockquote type="cite"><blockquote type="cite">(3) Or one forces the compiler to accept also other values than .true./.false. As with the previous item, it will affect also all non-Bind(C) logicals. And C_Bool should presumably excluded as one otherwise might get in trouble with the C compiler.<br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">It seems it has to anyway to be compatible with C. I don't have the C99 standard but it appears that there isn't a constant for "true" and "false" without including stdbool.h. Thus a Fortran compiler will have to anticipate values other than .true./.false.<br></blockquote><br>true and false are specified to be 1 and zero in stdbool.h.<br><font class="Apple-style-span" color="#730000"><br></font></div></blockquote><br></div><div>While Fortran can't rely on programmers including stdbool.h, these are at least well-defined values.</div><div><br></div><div>-craig</div><br></body></html>