Richard --
You have to think like a computer does. For K+=2, computer must (simplified version):
1. Get value of 2
2. Add it to K

For K = K+=2, computer must (simplified version):
1. Get value of K
2. Get value of 2
3. Add the two values
4. Store results in K

It's actually more complicated, because, depending on the actual hardware (cpu) available, some or even all of the simplified steps above require multiple, low level instructions. But that is the general idea.
-- Keith

Richard wrote:
hi there

K+=2 assigns at a faster speed than k=k+2 though they are identical in their result*

why is this?

*(as cited on pg 333 of the AB 5.20 user's guide)

greetings
timekeeper (aka richard)


Reply via email to