Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Loops alternate recursive ways
#7
Thumbs Up 
+1 Thanks @Dimster 

Those are beauties, I am saving them in my Basic Lectures Folder thanks again for reminders.

Quote:I actually hadn't thought that Recursion by Label was a thing.

You mean the GoSub ie GoSub (LineLabel)?

Yeah you have to be careful with global variables that are visible to main program, sometimes it's easier to keep instances of calls separate to keep the different values to a variable as you can inside a Sub or Function That is the work of the Stack that works behind the scenes tracking all the values a variable has in different calls to the same routine. Cool stuff!
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
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

Possibly Related Threads…
Thread Author Replies Views Last Post
  Today I learned loops are slow CMR 10 929 12-20-2025, 02:15 PM
Last Post: TDarcos
  Insert Sort 4 ways demostration TempodiBasic 0 605 03-23-2023, 01:50 AM
Last Post: TempodiBasic

Forum Jump:


Users browsing this thread: 2 Guest(s)