Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Import
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
blaster009




PostPosted: Mon Jan 09, 2006 11:06 pm   Post subject: Import

Just a question: How does importing files work in Turing? I'd love to poke around with it myself, but I'm afraid I don't have time right now...My friend has told me that if I stick all of my procedures in other files which are called from the main one, it should increase the overall speed of my program. Is this correct? Lastly, how does the actual importing syntax itself work? Do I just write "import "filename.t" at the top?

Thanks in advance for any help!
Sponsor
Sponsor
Sponsor
sponsor
blaster009




PostPosted: Tue Jan 10, 2006 10:54 am   Post subject: (No subject)

Actually, change of heart: Looking through the help file, I should be using "include", not "import". I'd still like to know however: Is there any real point to importing all my functions and subroutines from sperate files or no? Lol...Thanks again for any help
person




PostPosted: Tue Jan 10, 2006 11:30 am   Post subject: (No subject)

Quote:
it should increase the overall speed of my program


i dont thik it should

Quote:
Is there any real point to importing all my functions and subroutines from sperate files or no?


yes there is, u can basically reuse some functions and subroutines after creating it once
do_pete




PostPosted: Tue Jan 10, 2006 11:54 am   Post subject: (No subject)

Yes there is a point, you can create modules and classes and make them units and then import them using the import statement. For more on classes and modules check out the Turing Walkthrough
Avarita




PostPosted: Tue Jan 10, 2006 4:25 pm   Post subject: (No subject)

If there's a part of your program that you know you will not alter, consider importing it because it reduces scrolling time, especially if a large part of the code will not be altered.
blaster009




PostPosted: Wed Jan 11, 2006 11:09 am   Post subject: (No subject)

Alright...In that case, I'll keep it as is. Thanks guys
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: