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 / #include limitations

Author
Message
elVee
21
Years of Service
User Offline
Joined: 4th Oct 2003
Location:
Posted: 19th Oct 2003 02:01
If you put your functions in a different file, and use #include, are there any limitations? What are the advantages/disadvantages?
Hamish McHaggis
22
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 19th Oct 2003 04:03
Nope, you have to open the other file to access the code, and you have to save the file for the changes to take effect, your code can be neater, easier to read and less clogged up if you separate it out into multiple files.

Brains are for idiots.

Athelon XP 1400 Plus - Nvidia Geforce MX400 - 256mb RAM
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 19th Oct 2003 06:18
Its exactly the same as if you had of put the function at the bottom of your code, but it's now in another file, which makes it alot easyer to keep track of code etc...

Knowledge Belongs To The People...
elVee
21
Years of Service
User Offline
Joined: 4th Oct 2003
Location:
Posted: 19th Oct 2003 06:32
Ah ok thanks.

Login to post a reply

Server time is: 2025-05-21 17:54:50
Your offset time is: 2025-05-21 17:54:50