Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
blue ball!
#11
If you run it long enough in Qbasic, your gonna get a stack overflow b/c of all the GOTO's without the Returns. I'd assume you'd get the same with Freebasic, except it'd take longer, unless FB doesn't have stack space.
Jumping Jahoolipers!
Reply
#12
really!? how long, i'll try... + how do returns work
url=http://www.random-seed.net][Image: asylumsig.png][/url]
Reply
#13
barok, you're confusing it with gosub.

Goto doesent generate stack overflows.
Reply
#14
i'm confused..so gosub causes overflow..and goto is kool, i think i got it....
url=http://www.random-seed.net][Image: asylumsig.png][/url]
Reply
#15
GOSUB causes overflows if it's called recursively enough times since it places its re-entry point on the stack. QB has a very small stack but FB has a gigantic one by default. GOTO is just a JMP...no stack required.
I'd knock on wood, but my desk is particle board.
Reply
#16
i get it, that makes sense
url=http://www.random-seed.net][Image: asylumsig.png][/url]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)