Subject: RE: SDL-News: time conversion
From: Thomas Weigert (thomas.weigert#motorola.com)
Date: Sat Dec 16 2000 - 02:51:31 GMT
Become an SDL Forum Society member <http://www.sdl-forum.org/Society/members.htm>
The originator of this message is responsible for its content.
-----From "Thomas Weigert" <thomas.weigert#motorola.com> to sdlnews -----
We could, of course, also wonder why it has to be that time and duration
have their special data types (in particular, as these are not very
sophisticated types---no date fields, etc.). One could use reals for setting
timers etc. just as well?
Is there any good reason for not using reals to set SDL timers?
> -----Original Message-----
> From: owner-meeting#sdl-forum.org [mailto:owner-meeting#sdl-forum.org]On
> I conclude, therefore that it would be useful if SDL had a built in
> Float: Duration -> Real;
> such that Float(<<TYPE Duration>>d) = <<TYPE Real>> r
> if the spelling(d) == spelling(r)
> for example Float(<<TYPE Duration>>12.34) is equivalent to <<TYPE
> then it would be possible to covert a time value to an Real or Integer:
--End text from "Thomas Weigert" <thomas.weigert#motorola.com> to sdlnews ---
For extra SDL Forum Society benefits join at <http://www.sdl-forum.org/Society/members.htm>
This archive was generated by hypermail 2a23 : Thu May 09 2013 - 16:05:49 GMT