Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,582 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Replacement for "temp" in Lite-C? #240419
12/10/08 21:10
12/10/08 21:10
Joined: Jul 2005
Posts: 192
Orange County
S
silencer Offline OP
Member
silencer  Offline OP
Member
S

Joined: Jul 2005
Posts: 192
Orange County
Is there a replacement for "temp" in lite-c? I remember temp being very useful because it didn't need to be typecast.

Also for Vectors, is there a vector implementation for C/C-lite, or do we have to write our own?


AMD 64 x2 4400+ 2048mb DDR3200 NVidia 6800GS 256mb Soundblaster Audigy 2 A7 Commercial 7.07
Re: Replacement for "temp" in Lite-C? [Re: silencer] #240433
12/10/08 22:26
12/10/08 22:26
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline
Expert
Joozey  Offline
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
VECTOR* can be used for vectors. var temp doesn't need typecast. In fact, nothing needs typecast in c-script, and only a minor amount of code needs typecast in Lite-C. That said, it's not harmful to typecast everything that needs it. In fact, I'd make that common courtesy.


Click and join the 3dgs irc community!
Room: #3dgs
Re: Replacement for "temp" in Lite-C? [Re: silencer] #241244
12/15/08 01:23
12/15/08 01:23
Joined: Oct 2008
Posts: 218
Nashua NH
heinekenbottle Offline
Member
heinekenbottle  Offline
Member

Joined: Oct 2008
Posts: 218
Nashua NH
Originally Posted By: silencer
Is there a replacement for "temp" in lite-c? I remember temp being very useful because it didn't need to be typecast.

Also for Vectors, is there a vector implementation for C/C-lite, or do we have to write our own?


x/y/z, tilt/pan/roll and red/green/blue

are declared as:

VECTOR ANGLE COLOR

respectively.


I was once Anonymous_Alcoholic.

Code Breakpoint;

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | 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