[Gambas-user] Gambas has Gosub now!

Jussi Lahtinen jussi.lahtinen at ...626...
Sun Mar 4 17:35:05 CET 2012


Maybe there should be "GoBack" instead of "Return".
We already have "GoTo" and "GoSub", so I think it would be logical...

Jussi




2012/3/4 Benoît Minisini <gambas at ...1...>

> Le 04/03/2012 02:23, Benoît Minisini a écrit :
> >
> > You are right, I didn't think about that. So the current design does not
> > work, and I don't have another one.
> >
> > I will remove GOSUB if it cannot be implemented in a right way. :-/
> >
> > Regards,
> >
>
> Here is the only solution I found in revision #4531:
>
> * Now I use a dedicated control variable set for each GOSUB subroutine.
>
> * GOSUB labels now must be at top-level, and must be declared *after*
> the GOSUB call. Consequently, recursion is not possible anymore.
>
> I hope that GOSUB is still useful!
>
> --
> Benoît Minisini
>
>
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list