It is almost never safe to assume your code is perfect
Kay C Lan
lan.kc.macmail at gmail.com
Sun Oct 6 04:30:49 CEST 2013
On Fri, Oct 4, 2013 at 10:48 PM, Geoff Canyon <gcanyon at gmail.com> wrote:
> The switch to send in (1 - (the long seconds mod 1)) seconds was a
> very unexpected and exceedingly clever hack.
>
Sorry, I still don't get it.
In the msg box:
the long seconds mod 1
always returns 0 --seems right.
therefore:
(1 - (the long seconds mod 1))
is the same as:
1 - 0
So you may as well just say:
send in 1 seconds
On my computer;
put 1 - 0 into x
is slightly slower than;
put 1 into x
which is twice as fast as:
put (1 - (the long seconds mod 1)) into x
I expected it to be slower and it is, which leaves me foolishly trying to
figure out what the benefits are?
More information about the use-livecode
mailing list