Re: TIB: Goto's


[Prev][Next][Index][Thread]

Re: TIB: Goto's




Grant Stockly wrote:
> 
> This is what I do for my sub programs.  I make a list of all the
> subroutines I need to do and then this:
> 
> :"Looks for which routine to run
> :If A=1:Then:Goto 1:End
> :If A=2:Then:Goto 2:End
> :If A=3:Then:Goto 3:End
> :If A=4:Then:Goto 4:End
> :"Return if you made a mistake
> :Return
> :
> :Lbl 1:5->B:Return
> :Lbl 2:5->C:Return
> :Lbl 3:5->D:Return
> :Lbl 4:5->E:Return
> 
> This is a real bad example, but it is what I do...

An advantage of doing the subs one at a time and then testing them
individually is that you don't have to tidy up afterwards.

-- 
          Rene Kragh Pedersen
------------------------------------------------------------------
man: Why did you get a divorce?
man:: Too many arguments.


References: