Re: Trying to use a logical as an array index



Charles Coldwell wrote:
...
IAND(-1,NOT(transfer(.TRUE._C_BOOL,1)))

and

NOT(transfer(.TRUE._C_BOOL,1))


He mentioned before that he was having trouble getting the
compiler not to just optimize out his fantasy "tests" and that
he sometimes has to add additional operations to the expressions
to prevent that. This seems to be an example. That is fails
to prove any of the things he thinks it proves is another story.

--
J. Giles

"I conclude that there are two ways of constructing a software
design: One way is to make it so simple that there are obviously
no deficiencies and the other way is to make it so complicated
that there are no obvious deficiencies." -- C. A. R. Hoare

"Simplicity is prerequisite for reliability" -- E. W. Dijkstra


.



Relevant Pages

  • Re: random number
    ... Steven G. Kargl wrote: ... Rich Townsend writes: ... that satisfies the requirements of the compiler. ... no deficiencies and the other way is to make it so complicated ...
    (comp.lang.fortran)
  • Re: [Lit.] Buffer overruns
    ... > modern processors that have such deficiencies? ... I used the PDP-11 as a specific *well known* example ... impossible for the compiler to know whether there will ... be used by the programmer to help instruct the compiler ...
    (sci.crypt)
  • Re: I/O in PURE and ELEMENTAL procedures in Fortran 2008
    ... I intended to point out that in my last article: even if the compiler ... No provision of the standard ... permits multi-statement short-circuiting. ... no deficiencies and the other way is to make it so complicated ...
    (comp.lang.fortran)
  • Re: function : question on argument for output
    ... That would deviate from the standard's definition of "execution ... The only reason the compiler is allowed to skip the ... It isn't good language design to say that something is allowed in the ... no deficiencies and the other way is to make it so complicated ...
    (comp.lang.fortran)
  • Re: Crazy Problem
    ... > statement would also be valid on its own, so you have to do the lookahead ... > I don't know whether this is actually a significant issue to compiler ... If there are a lot of comment lines intervening, ... no deficiencies and the other way is to make it so complicated ...
    (comp.lang.fortran)