> Date: Fri, 10 Feb 2006 09:17:54 -0000 > From: "Serguei" <[EMAIL PROTECTED]> > Subject: Re: [U2] [UV] GOSUB variable-name? > > This approach is absolutely awful from software design point of view. I > personally would hate to have to support software when it is the calling > program that decides the flow of the program that is been called. > Do you really need this?
Awful? Perhaps not! Consider this to be a form of 'reflection' adapted to Basic! The 'label' being addressed is the 'method name' and the subroutine the 'class'. Quite an accepted technique. Of course, Basic being what it is - it just 'looks' awful <grin> (Yes, I am joking) > > I would like to pass a variable (let's call it "SUBNAME") to a subroutine, > > and this variable would contain the name of an existing label which I will > > call "TEST". > > > > The subroutine can then do GOSUB TEST, but GOSUB SUBNAME will not compile. > > > > Aside from CALL @VARIABLENAME, is there any way to branch indirectly in > > universe? This would be really useful for me. > > > > Barry Brevik ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
