Oxygen Basic
Programming => Problems & Solutions => Topic started by: Mike Lobanovsky on March 21, 2018, 04:47:26 AM
-
Charles,
Since an unprototyped function call would default its floating point argument to a Single, how am I supposed to override this behavior and pass my argument as an explicit Double? (hint: OpenGL)
TIA
-
Hi Mike,
You can prefix convert double to the param expression or value.
Better still, just say double ... But this requires the next release of Oxygen.dll, which I hope will be out later today.
-
Great!
Will double (or convert double) actually preserve the original double precision losslessly or rather regard it as a cast and simply expand the lossy default conversion to 64 bits?
-
Yes the param expression is processed first and then overrides the default type. But I see a lttle problem with cdecl stack cleanup after doubles...
-
Solvable? I'd rather we won't have to subside to a palliation... :-\