Author |
Message |
Bacchus
![](http://img104.exs.cx/img104/9206/ravenmoon12ns.jpg)
|
Posted: 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? |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Cervantes
![](http://compsci.ca/v3/uploads/user_avatars/1023105758475ab2e040bde.jpg)
|
Posted: 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. |
|
|
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
Posted: 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. |
|
|
|
|
![](images/spacer.gif) |
Bacchus
![](http://img104.exs.cx/img104/9206/ravenmoon12ns.jpg)
|
Posted: 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 |
|
|
|
|
![](images/spacer.gif) |
Flikerator
|
Posted: 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
|
? |
|
|
|
|
![](images/spacer.gif) |
Bacchus
![](http://img104.exs.cx/img104/9206/ravenmoon12ns.jpg)
|
Posted: 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] |
|
|
|
|
![](images/spacer.gif) |
Cervantes
![](http://compsci.ca/v3/uploads/user_avatars/1023105758475ab2e040bde.jpg)
|
Posted: Sat Mar 19, 2005 11:57 am Post subject: (No subject) |
|
|
Bacchus: If you've got a module (perhaps a dialogue module ), why not just make it a unit and import it?
But yes, if it's not a module, just include it. |
|
|
|
|
![](images/spacer.gif) |
|