Host Engineering Forum

General Category => DirectSOFT => Topic started by: jneill on March 06, 2011, 08:12:56 AM

Title: SubRoutines
Post by: jneill on March 06, 2011, 08:12:56 AM
 :P  Can a subroutine be nested within a subroutine?

Example:
           Main Program .....

           .............(GTS/K1)
           .............(end)
         
           Sbr(K1
           .............(GTS/K1)
           .............(RT)
           .............(GTS/K2)
           .............(RT

           .............(RT)

I know and appologize for the cruedness, but I am sure you all get the picture

Thanks!
     
Title: Re: SubRoutines
Post by: b_carlton on March 06, 2011, 09:37:12 AM
Yes but with this warning as noted in the GTS instruction

Quote
The GTS instructions can be nested up to 8 levels

So you can't do large recursive things
Title: Re: SubRoutines
Post by: Controls Guy on March 29, 2011, 03:55:15 PM
I'm pretty sure it's a bad idea to call K1 from WITHIN K1. ;D