
20 years of rubbish and still counting
Started by Richard Bassett, Aug 26 2005 05:04 PM
21 replies to this topic
#16
Posted 29 August 2005 - 06:43 PM
You can use either, they both work the same....
Rob D.
Rob D.
#17
Posted 30 August 2005 - 08:57 AM
If you think about it,
#v2 = - #v1
is really just syntactic sugar for
#v2 = 0 - #v1
As an semi-relevant aside, I think I once determined that a -ve "constant" such as -3 in ProIV is not a "separately stored number" but is in fact this unary-minus operator applied to the +ve constant 3.
You could in fact test this by applying the old "1=0" bug to change the value of the numeric literal 3 and I think you'll see the value of the numeric literal -3 also change as a result.
I'm sure you really wanted to know that
#v2 = - #v1
is really just syntactic sugar for
#v2 = 0 - #v1
As an semi-relevant aside, I think I once determined that a -ve "constant" such as -3 in ProIV is not a "separately stored number" but is in fact this unary-minus operator applied to the +ve constant 3.
You could in fact test this by applying the old "1=0" bug to change the value of the numeric literal 3 and I think you'll see the value of the numeric literal -3 also change as a result.
I'm sure you really wanted to know that

Nothing's as simple as you think
#18
Posted 30 August 2005 - 10:24 AM
Excellent!!!
Indeed, with the 1 = 0 bug, the negative number is also affected.
Sorry.... I just had to test it
Rob.
Indeed, with the 1 = 0 bug, the negative number is also affected.
Sorry.... I just had to test it

Rob.
Reply to this topic

1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users