lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Ideally there would be one place with defines for everything and then the
code would include casts that used the defines.  Mostly I want to get rid of
implicit casting and have it be specified directly in code via the define.

----- Original Message ----- 
From: "Asko Kauppi" <asko.kauppi@sci.fi>
To: "Lua list" <lua@bazar2.conectiva.com.br>
Sent: Wednesday, December 22, 2004 4:17 PM
Subject: Re: Heap usage and variable argument C functions


>
> Would it be nice to exchange these places?  I mean, for me the Lua
> _core_ was quite clean, but the standard libraries need fiddling with
> in order to be run as 'float'.
>
> One example (a tricky one) is 'os.time()' which would lose accuracy if
> returning a float (values don't fit in 24 bit mantissa).
>
> -ak
>
> 22.12.2004 kello 02:54, Brett Bibby kirjoitti:
>
> >   In the current
> > Lua 5 I have to change numerous places to switch form double to float.