F
Fabrizio J Bonsignore
This just happened, really, it just happened in a for loop...
ld----1
ld is an index to the last object in the string, less ONE because it
starts counting on zero. But the index has to decrement each loop,
therefore it has to be ld-- : take the index value, then diminish it
by one. But written as is you arrive at the statement:
ld---1 !!!
Will the compiler apply priority ordering? It will read TWO - signs
and interpret them as slef-minus operator, then rest one from ld. Or
will it say it is ld less (--1=0). I do not know, I have no time to
EXPERIMENT! So I have to write (ld--)-1 and wait for the compiler to
interpret it as: take ld value, rest ONE from it, then diminish ld by
one...
ld----1
ld is an index to the last object in the string, less ONE because it
starts counting on zero. But the index has to decrement each loop,
therefore it has to be ld-- : take the index value, then diminish it
by one. But written as is you arrive at the statement:
ld---1 !!!
Will the compiler apply priority ordering? It will read TWO - signs
and interpret them as slef-minus operator, then rest one from ld. Or
will it say it is ld less (--1=0). I do not know, I have no time to
EXPERIMENT! So I have to write (ld--)-1 and wait for the compiler to
interpret it as: take ld value, rest ONE from it, then diminish ld by
one...