This is an interesting topic as this concept within BASIC was actually developed and tested with great success here, though unfortunately never implemented for field release. I don't quite recall now how the implementation was done, but I believe there was a new statement used to indicate that an internal subroutine was either global or local and that would determine how variables were treated. I don't believe it was that difficult to implement either...

Anyways, it sure would be a nice feature in the real world!

At 09:49 AM 03/01/2004, you wrote:
> The only problem is that internal subroutines do not have local
> variables so
> the second call is using the same variables as its parent.  If this is a
> problem, using dynamic arrays to stack the necessary items is quite neat.
>

At the risk of sounding like an ad, there's an article at
http://www.precisonline.com/inner.html discussing the concept of "inner
recursion", that is, recursing inside of a single program.

--Kevin
[EMAIL PROTECTED]
http://www.PrecisOnline.com



--
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users

-- u2-users mailing list [EMAIL PROTECTED] http://www.oliver.com/mailman/listinfo/u2-users

Reply via email to