[Gambas-user] Gambas has Gosub now!

Benoît Minisini gambas at ...1...
Sun Mar 4 18:41:55 CET 2012


Le 04/03/2012 15:23, Emil Lenngren a écrit :
> Nice, to me it looks like that design works ;)
>
> But I get a compile error:
> error: 'TRANS_GOTO' has no member named 'gosub'
>
> I assume the "share" folder was not commited to svn...
> When I add "bool gosub" to the gbc_trans_common.h, it works.
>
> Now a little bug:
> Now the compiler thinks that all labels are Gosubs, so if you use the
> labels as before with Gotos, you get "Forbidden Gosub":
>
> Goto label2
> label1:
> Return
> label2:
> Goto label1
>
> gives "forbidden gosub".
>
> /Emil
>

Oops. Fixed in revision #4533.

-- 
Benoît Minisini




More information about the User mailing list