Gosub is the spawn of Satan! Never really liked it much, and probably never will. Didnt even use it way back when on the ancient Acorn Electron (cos functions made my code look pretty). I like them for the following reasons:
1) Tidy code is easier to understand and to debug. Functions make it tidier.
2) Recursive functions are seriously useful, especially when dealing with parent and child entities in B3D.
3) Large numbers of Gosubs can get very confusing very quickly.
Just thought I'd add my input.
1) Tidy code is easier to understand and to debug. Functions make it tidier.
2) Recursive functions are seriously useful, especially when dealing with parent and child entities in B3D.
3) Large numbers of Gosubs can get very confusing very quickly.
Just thought I'd add my input.