[Gambas-user] Gambas has Gosub now!

WALKER RICHARD richard.j.walker at ...247...
Sun Mar 4 22:32:56 CET 2012


Why not try:

RETURN label:

It looks like a function return value but "label:" can only be a label, yes

On 04/03/2012, Benoît Minisini <gambas at ...1...> wrote:
> Le 04/03/2012 17:35, Jussi Lahtinen a écrit :
>> Maybe there should be "GoBack" instead of "Return".
>> We already have "GoTo" and "GoSub", so I think it would be logical...
>>
>> Jussi
>>
>
> Yes, but RETURN is the historical syntax in Basic.
>
> And I don't think it's a problem if you cannot return from the function
> directly if you are inside a GOSUB. GOSUB should be used for very
> specific needs - recursion is now impossible!.
>
> If I have to make recursion possible, we will lose the speed gain. So
> better use a real function!
>
> Regards,
>
> --
> 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