www.ClassicTW.com
https://mail.black-squirrel.com/

COMPILLING A CTS FILE
https://mail.black-squirrel.com/viewtopic.php?f=15&t=21627
Page 1 of 1

Author:  Yop_Solo [ Wed Mar 04, 2009 5:44 pm ]
Post subject:  COMPILLING A CTS FILE

HI,

If you created a main.ts and a couples of module.ts and a part of a module use and other module with the include command...
Do we need to compile each part and after compile the main.ts ? If not, could we compile only the main.ts and modules will be include with their modules ?

Author:  Singularity [ Wed Mar 04, 2009 5:51 pm ]
Post subject:  Re: COMPILLING A CTS FILE

No, compile the main.ts and it'll compile in the includes.

Author:  Yop_Solo [ Wed Mar 04, 2009 7:56 pm ]
Post subject:  Re: COMPILLING A CTS FILE

yea i know... but in my includes... there are some of them using the others... so if you understand my last question, it will compile and link them too...

For now, i tested my module that it is using an other module without passing throught my main.ts ... so the include is in this file... do I need to put my include only in the file that it using it... so my main doesn't need to have an include of the module that is it using my other module... Let's see my example cause i think it's very confused and explain it his relatively difficult in my second language.

EXAMPLE
main.ts (include module 1.ts and module 2.ts)
module 1.ts
module 2.ts (include sub-module A.ts)
sub-module A.ts

Author:  Promethius [ Wed Mar 04, 2009 8:05 pm ]
Post subject:  Re: COMPILLING A CTS FILE

As far as I know it should compile all includes.

Author:  Yop_Solo [ Wed Mar 04, 2009 8:07 pm ]
Post subject:  Re: COMPILLING A CTS FILE

Ok... so when it will compile, it will pass throught the main, compile all include and when there is an include in main's includes, it will compile them too... right ?

Someone can confirm, if you already expercience that...

Author:  Vid Kid [ Wed Mar 04, 2009 9:19 pm ]
Post subject:  Re: COMPILLING A CTS FILE

Yes , that is right.

Look at the examples in TWX , 2_MassUpGrade
it contains includes and those incuded files contain includes .. and those included files
include more included files.

and when you compile the first file .. you can remove all the other included files
or rename them for test purposes .. and see that everything in in the one .cts file.

hope this answers your question as best as I can with examples and a test.

Author:  Singularity [ Wed Mar 04, 2009 9:23 pm ]
Post subject:  Re: COMPILLING A CTS FILE

You don't need to compile your includes. When you compile a script it will compile all includes in. As for nested or recursive includes, I'm pretty sure it works for that too... but if you're so concerned about it why not just compile your main.ts and test it and make sure it works?

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/