[Gambas-user] Getting Gambas up to speed.

PV oreip at ...1...
Tue Jul 5 23:21:05 CEST 2005


On 05/07/2005 22:15, Laurent Carlier wrote:

> small test program :
> FOR ... NEXT :1.337913000025
> DO ... LOOP UNTIL :1.499999780208E-5
> DO WHILE ... LOOP :2.90982099995
> WHILE ... WEND :2.893097999971
> 
> DO ... LOOP UNTIL -> wow !
> 

There's an error in your test program: in the do...loop until section, the loop 
is executed only once since the j < value condition evaluates to true on the 
first run.

My results (after correction):

FOR ... NEXT :1.546652000048
DO ... LOOP UNTIL :2.545786999981
DO WHILE ... LOOP :3.030274000019
WHILE ... WEND :2.942573999986

Ciao,
Piero




More information about the User mailing list