[prev in list] [next in list] [prev in thread] [next in thread]
List: lua-l
Subject: Re: Few questions about 5.0 -> 5.1
From: Mike Pall <mikelu-0510 () mike ! de>
Date: 2005-10-21 16:36:57
Message-ID: 20051021163657.GB9732 () mike ! de
[Download RAW message or body]
Hi,
Adam D. Moss wrote:
> I guess the 'right' solution is telling DirectX to leave doubles
> as doubles.
>
> I wonder if there's a run-time test for this mishap?
Initialize DirectX/Direct3D _first_, then run this code:
-- For Lua 5.1-alpha with the new number2int macro:
assert(({1})[1] == 1)
-- For any Lua version:
assert(1e9+1 ~= 1e9)
assert(1/(2^300) ~= 0)
(Untested -- tell me if this works)
Bye,
Mike
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic