[Gambas-user] Possible suggestion/question

Benoît Minisini gambas at ...1...
Fri Mar 2 23:25:08 CET 2012


Le 02/03/2012 20:03, Jussi Lahtinen a écrit :
> I made quick effort to try to simulate gosub with goto,
> and noticed that jumping back inside loops is not possible (as the
> documentation says...).
>
> I understand that when it's For ... Next, but shouldn't that be possible
> with Do ... Loop Until x?
>
> Anyway, I'm not sure my simulation does accurately compare speed of Sub to
> Gosub... if it does,
> then gosub would be 2 to 3 times faster.
>
> Jussi

OK, it is faster. But now I must find a way to implement GoSub, and I 
don't have one at the moment. :-/

>
> PS. Try to change last line "End" to "EndEnd" and then try to compile!

Oops, line number problem there. I will fix it...

-- 
Benoît Minisini




More information about the User mailing list