|
Re: replace var with float and support var as float typedef
[Re: Saturnus]
#337870
08/14/10 00:25
08/14/10 00:25
|
Joined: Mar 2006
Posts: 3,538 WA, Australia
JibbSmart
Expert
|
Expert
Joined: Mar 2006
Posts: 3,538
WA, Australia
|
I wonder how realistic it would be to ask for a #define, then, that enabled the switch?
Jibb
Formerly known as JulzMighty. I made KarBOOM!
|
|
|
Re: replace var with float and support var as float typedef
[Re: JibbSmart]
#337879
08/14/10 04:07
08/14/10 04:07
|
Joined: Mar 2002
Posts: 1,774 Magdeburg
FlorianP
Serious User
|
Serious User
Joined: Mar 2002
Posts: 1,774
Magdeburg
|
definitely agree! Never in history something was as unecessary as inventing the var-type.
Last edited by FlorianP; 08/14/10 04:14.
I <3 LINQ
|
|
|
Re: replace var with float and support var as float typedef
[Re: Saturnus]
#337889
08/14/10 07:47
08/14/10 07:47
|
Joined: Jul 2001
Posts: 6,904
HeelX
OP
Senior Expert
|
OP
Senior Expert
Joined: Jul 2001
Posts: 6,904
|
Replacing var with float will easily break this backward compatibility completely. var is not only used for fixed point numbers, but also for storing engine object handles and pointers. Entity skills are vars, too. So replacing alone won't do it. Float was just a suggestion because var's are used most often for numeric stuff. If you only have integer values - use integer. If you return pointers, return them in the appropriate format or use simply void* (e.g. for sound handles or do typedef void* SOUND_HANDLE or else).
|
|
|
|