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 2012/3/4 Benoît Minisini <gam...@users.sourceforge.net> > 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@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user