Hi,
On Sat, 20 Nov 2004, 1:57pm +1100, [log in to unmask] wrote:
> program test
> write(*,*) 1d-1/-2d-1
> end program test
Sorry for being thick-headed, but could someone explain exactly
what is unambiguous or not covered by the standard or is in
violation of the standard in this example?
Someone said words to the effect that "/ has higher precedence
than unary -, and therefore parentheses are needed." Where?
Is the question whether "1d-1" or "2d-1" are parsed as numbers
with highest precedence? Does the standard fail to address this?
If they are parsed as numbers with highest precedence, then
of course the expression in question reads the same as
"(1d-1)/-(2d-1)", which is unambiguous.
So again, I'd appreciate it if someone would explain just what
the problem is here.
Thanks,
-P.
|