Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Loops alternate recursive ways
#9
(01-30-2023, 05:36 PM)Dimster Wrote: About that STACK. Am I understanding it correctly that our Do Loops, For Loops and even Select Cases, are on and off the stack once the loops are completed, whereas Recursion keep piling onto the Stack to the point where is could over flow the stack. If that's correct, is there a code that can be included with Recursive code that monitors the condition of the stack?

Don't need a stack to track where, which line to jump execution to in loop, nor in select case or If Then ElseIF... Then Else end if. Those are just GOTO's in deisguise.

Stacks do track calls to Subs and functions and the variable values meant to be private to that particular call. Last In First Out.
b = b + ...
Reply


Messages In This Thread
Loops alternate recursive ways - by bplus - 01-28-2023, 07:45 PM
RE: Loops alternate recursive ways - by Dimster - 01-28-2023, 09:09 PM
RE: Loops alternate recursive ways - by bplus - 01-28-2023, 09:28 PM
RE: Loops alternate recursive ways - by Dimster - 01-29-2023, 04:10 PM
RE: Loops alternate recursive ways - by bplus - 01-29-2023, 04:23 PM
RE: Loops alternate recursive ways - by Dimster - 01-29-2023, 04:33 PM
RE: Loops alternate recursive ways - by bplus - 01-29-2023, 05:45 PM
RE: Loops alternate recursive ways - by Dimster - 01-30-2023, 05:36 PM
RE: Loops alternate recursive ways - by bplus - 01-30-2023, 07:11 PM
RE: Loops alternate recursive ways - by SMcNeill - 02-01-2023, 06:10 AM
RE: Loops alternate recursive ways - by Dimster - 02-01-2023, 02:05 PM



Users browsing this thread: 5 Guest(s)