psuedo local variables for recursion:
keep a list with the variable name you want, and an index variable measuring your recursion depth. every time you enter a routine that needs the local variable increase the index variable and push onto the variable list with augment{(L)VARNM,{VAL}). every time you exit, decrease the index variable and pop off the variable list with indexvar->dim((L)VARNM

you can access the local variable with (L)VARNM(indexvar)
I had an idea on that for keeping track of shots fired on a screen, merely by keeping track of the dim( of a list...

Definitely a nice idea though. Smile
tifreak8x wrote:
I had an idea on that for keeping track of shots fired on a screen, merely by keeping track of the dim( of a list...

Definitely a nice idea though. Smile
May I recommend for your perusal:
http://www.unitedti.org/index.php?showtopic=5946
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement