Hi,
On Sat, 20 Nov 2004, 6:57pm -0500, [log in to unmask] wrote:
> 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?
OK, sorry for responding to my own post, but I think I see now.
I was confused by the fact that this example is more complicated
than it has to be to exhibit the problem. Even the expression
"1.0/-2.0" exhibits the problem, which shows that indeed the
precedence of '/' and unary '-' is the issue, as was said earlier.
I'm surprised I didn't know (or maybe forgot) about this. Live
and learn.
-P.
|