[Gambas-user] Speaking of optimizations
Cedron Dawg
cedron at exede.net
Sun Mar 17 19:50:25 CET 2019
Thanks. That differs a bit from prior BASICS, but it'll make for cleaner code.
Good to know.
----- Original Message -----
From: "Tobias Boege" <taboege at gmail.com>
They are the same. The "For To" loop does even less than what you expect
it to: the To part is only once at the beginning:
Public Sub Main()
For i As Integer = 0 To i + 1
Print i
Next
End
> 0
> 1
Regards,
Tobi
--
"There's an old saying: Don't change anything... ever!" -- Mr. Monk
----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
More information about the User
mailing list