
-----------------------------------
Bacchus
Thu Mar 17, 2005 10:53 pm

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?

-----------------------------------
Cervantes
Fri Mar 18, 2005 8:13 am


-----------------------------------
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
Fri Mar 18, 2005 9:13 am


-----------------------------------
though really it doesn't matter. You can just as easily save your files as .txt

difference is just for the organizational purposes.

-----------------------------------
Bacchus
Fri Mar 18, 2005 9:24 am


-----------------------------------
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
Fri Mar 18, 2005 4:57 pm


-----------------------------------
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;


proc man1
     put "hi"
end man1

put "You bump into some guy and he says;"
man1


you have


put "you bump into some guy and he says;"
open turing file with proc man1



?

-----------------------------------
Bacchus
Fri Mar 18, 2005 5:16 pm


-----------------------------------
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
Sat Mar 19, 2005 11:57 am


-----------------------------------
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.
