Lite-C Questions

Posted By: sheefo

Lite-C Questions - 09/14/06 16:40

I have a few questions regarding the new Lite-C language.

My first question is: does Lite-C have support for ‘for’ loops and ‘case/switch’ statements? These are some things that I have needed when making an RTS game with 3D GameStudio.

Another question is: Can strings be manipulated like in scripting languages, like Ruby or Python? Instead of using ‘str_cpy’ and ‘str_cat’, can we add strings together with a ‘+’ symbol? This is useful for something like ‘ent_create’.
Like this:
Code:

string extension = “.mdl”;
string filename[25];

ent_create(filename + extension, nullvector, null);



One last question, and one that I will ask at the risk of getting my head bitten off… when will it be officially released?

PS: I purchased A6 Commerical, so I will get a free update in A6, right?
Posted By: Anonymous

Re: Lite-C Questions - 09/14/06 20:02

Lite-C is based on C, so yes. Lite-C supports for loops and do-while loops, plus, switch-case control statements.

Because Lite-C is based on C, if I'm correct (correct me wrong Conitec) strings are immutable.

I'm not a C programmer, so I will pass this to Conitec since I lost my interest on C/C++.
Posted By: sheefo

Re: Lite-C Questions - 09/14/06 20:44

Thanks. You clarified quite a lot.
I'm glad that there are 'for' loops. I need them a hell of a lot.

I’m starting to like 3D GameStudio even better now. Once they release Lite-C I will make my RTS so much more stable.
Posted By: jcl

Re: Lite-C Questions - 09/15/06 09:00

You can find details on the beta page. The lite-C release date is not determined yet, though.
Posted By: FBL

Re: Lite-C Questions - 09/15/06 09:03

"adding" strings won't be possible I'm afraid - unless we get operator overloading from C++ or a special Gamestudio string feature.

You'll have to use str_cat.
Posted By: sheefo

Re: Lite-C Questions - 09/15/06 10:04

Thanks, I'll check out the BETA page.

It's a shame that "adding" strings wont be a feature
© 2023 lite-C Forums