Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / functions vs. subroutines

Author
Message
Chief Voyager
23
Years of Service
User Offline
Joined: 20th Mar 2003
Location: United States
Posted: 9th Apr 2003 21:18
if i have a subroutine during a loop (such as player movement) i know that it will keep repeating because it is in a loop. but if i have a function in a loop, if my command sends me to that particular function, does the main loop temporarily relinquish control to the function until that function ends?
You're ate up like a soup sandwich.
Kevin Picone
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Australia
Posted: 9th Apr 2003 21:38
Chief:

Yep, both function and Sub routine calls change control completely, so the loop from which either is called is no longer being executed.

l8r,
Kevin Picone
[url]www.underwaredesign.com[/url]

Login to post a reply

Server time is: 2026-06-11 15:09:36
Your offset time is: 2026-06-11 15:09:36