Computer Science Canada

Difference between .t and .tu

Author:  Bacchus [ 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?

Author:  Cervantes [ Fri Mar 18, 2005 8:13 am ]
Post 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.

Author:  Tony [ Fri Mar 18, 2005 9:13 am ]
Post subject: 

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

difference is just for the organizational purposes.

Author:  Bacchus [ Fri Mar 18, 2005 9:24 am ]
Post 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

Author:  Flikerator [ Fri Mar 18, 2005 4:57 pm ]
Post 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



?

Author:  Bacchus [ Fri Mar 18, 2005 5:16 pm ]
Post 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]

Author:  Cervantes [ Sat Mar 19, 2005 11:57 am ]
Post 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.


: