Host Engineering Forum
General Category => DirectSOFT => Topic started 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!
-
Yes but with this warning as noted in the GTS instruction
The GTS instructions can be nested up to 8 levels
So you can't do large recursive things
-
I'm pretty sure it's a bad idea to call K1 from WITHIN K1. ;D