[Oberon] Re (2): Input.Timer in Native Oberon
peter at easthope.ca
peter at easthope.ca
Thu Jan 28 22:11:45 CET 2016
From: Paul Reed <paulreed at paddedcell.com>, Thu, 28 Jan 2016 19:16:01 +0000
> ... not if it's
>
> i := counter0 DIV 100 * 12 + 1;
>
> so the original "why" still stands, right? :)
Suppose that in an earlier version, either "100" or "12"
was a more complex expression. The expression was
simplified but the further simplification was omitted?
Another small oddity. Except for a special case, counter1
is incremented before it is initialized. If the compiler
initializes it to 0 or if the initial value happens to be
less than 10, no harm is done. Otherwise, counter1 will
eventually overflow. It should be initialized as counter0
is, in the body of Input.
Regards, ... Lyall E.
--
123456789 123456789 123456789 123456789 123456789 123456789 123456789 12
Tel +1 360 639 0202
http://easthope.ca/Peter.html Bcc: peter at easthope. ca
More information about the Oberon
mailing list