Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 02/26/26 21:35
WFO Training with parallel cores Zorro64
by Martin_HH. 02/26/26 16:03
Zorro version 3.0 prerelease!
by TipmyPip. 02/25/26 16:38
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (TipmyPip, Grant, Martin_HH), 5,401 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
the1, alx, ApprenticeInMuc, PatrickH90, USER0328
19200 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