Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by AndrewAMD. 12/05/23 10:56
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
6 registered members (AndrewAMD, alibaba, fairtrader, ozgur, TipmyPip, Quad), 622 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Lite-C Questions #89927
09/14/06 16:40
09/14/06 16:40
Joined: Jul 2006
Posts: 783
London, UK
sheefo Offline OP
User
sheefo  Offline OP
User

Joined: Jul 2006
Posts: 783
London, UK
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?

Re: Lite-C Questions [Re: sheefo] #89928
09/14/06 20:02
09/14/06 20:02

A
Anonymous
Unregistered
Anonymous
Unregistered
A



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++.

Re: Lite-C Questions #89929
09/14/06 20:44
09/14/06 20:44
Joined: Jul 2006
Posts: 783
London, UK
sheefo Offline OP
User
sheefo  Offline OP
User

Joined: Jul 2006
Posts: 783
London, UK
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.

Re: Lite-C Questions [Re: sheefo] #89930
09/15/06 09:00
09/15/06 09:00
Joined: Jul 2000
Posts: 27,967
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,967
Frankfurt
You can find details on the beta page. The lite-C release date is not determined yet, though.

Re: Lite-C Questions [Re: jcl] #89931
09/15/06 09:03
09/15/06 09:03
Joined: Sep 2003
Posts: 9,859
F
FBL Offline
Senior Expert
FBL  Offline
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
"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.

Re: Lite-C Questions [Re: FBL] #89932
09/15/06 10:04
09/15/06 10:04
Joined: Jul 2006
Posts: 783
London, UK
sheefo Offline OP
User
sheefo  Offline OP
User

Joined: Jul 2006
Posts: 783
London, UK
Thanks, I'll check out the BETA page.

It's a shame that "adding" strings wont be a feature


Moderated by  old_bill, Tobias 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1