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

Username:   Password: 
 RegisterRegister   
 Difference between .t and .tu
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Bacchus




PostPosted: Thu Mar 17, 2005 10:53 pm   Post subject: Difference between .t and .tu

ok, just like the Subject, wats the difference between a .t file and a .tu file, like i kno the .tu file is like for a turing unit file or something, but can someone give me more details?
Sponsor
Sponsor
Sponsor
sponsor
Cervantes




PostPosted: Fri Mar 18, 2005 8:13 am   Post subject: (No subject)

Your .tu file is a unit of a class or module. If you have a Turing unit, you can import that class or module into any .t file you wish.
Tony




PostPosted: Fri Mar 18, 2005 9:13 am   Post subject: (No subject)

though really it doesn't matter. You can just as easily save your files as .txt

difference is just for the organizational purposes.
Bacchus




PostPosted: Fri Mar 18, 2005 9:24 am   Post subject: (No subject)

ic, ya i have a Turing unit and i wasnt sure if it was suposed to be in a .tu file and i just did it wrong lol thxs
Flikerator




PostPosted: Fri Mar 18, 2005 4:57 pm   Post subject: (No subject)

I dont know if this has anything to do with it, but just in case...

If I make some procedures, can I put them into another turing file and call them up? Just to make my main program smaller and easy to manage.

So instead of;

code:

proc man1
     put "hi"
end man1

put "You bump into some guy and he says;"
man1


you have

code:

put "you bump into some guy and he says;"
open turing file with proc man1



?
Bacchus




PostPosted: Fri Mar 18, 2005 5:16 pm   Post subject: (No subject)

use include
[code]include "filename"
modulename.man1[code] and im pretty sure you can just include one procedure or function from a file if you wanted to
[code]include man1 in "filename"
modulename.man1[/code]
Cervantes




PostPosted: Sat Mar 19, 2005 11:57 am   Post subject: (No subject)

Bacchus: If you've got a module (perhaps a dialogue module Confused ), why not just make it a unit and import it?
But yes, if it's not a module, just include it.
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  [ 7 Posts ]
Jump to:   


Style:  
Search: