Page 1 of 1

Gosub Within Procedure

Posted: Fri Jan 11, 2013 12:25 pm
by akj
As local labels are available in PB 5.10, could Gosubs now be permitted within procedures?
This will make it much quicker to convert programs written in old Basic dialects to PB.

I would like code such as the following to work:

Code: Select all

EnableExplicit

Procedure P()
Protected i
For i = 1 To 4
  Gosub Here
Next i
ProcedureReturn
Here:
  Debug i
Return
EndProcedure

P()
End

Re: Gosub Within Procedure

Posted: Sun Jan 13, 2013 12:04 am
by Kwai chang caine
+ 1 8)

Re: Gosub Within Procedure

Posted: Sun Jan 13, 2013 11:32 am
by Ulix
+ 1 :evil:

(Already ask, but just nothing!) Google translation