Re: C style compound assignment operators



Ben Hetland wrote:
*** Hendrickson wrote:
I can't think of a way to do infix ++ operators, but this
at least lets anyone do the storage related things.

Infix? What would that do?
In C and C++ they are either prefix or postfix, and I guess both could
be implemented as functions in Fortran, except they couldn't be used
as statements alone.

I think he was talking about the syntactic issue:

I = J +++ K

Is this

I = J + (++K)

or is it

I = (J++) + K

or what?

Remember that Fortran has a source form in which spaces
are not significant.

--
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


.