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)
__._,_.___
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)