[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Extending Lua for multiple light userdata types
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 14 Nov 2012 08:17:29 -0200
> Anything based on floating-point equality deserves to fail.
This is a misconception. The problem is comparing floating-point numbers
for equality when they may come from different sources, say one is read
and the other is computed. You then indeed have to be careful.
Moreover, it's what Lua already provides: table indexing for floating-point
numbers based on equality.
- References:
- Extending Lua for multiple light userdata types, Rena
- Re: Extending Lua for multiple light userdata types, Dirk Laurie
- Re: Extending Lua for multiple light userdata types, Rena
- Re: Extending Lua for multiple light userdata types, Dirk Laurie
- Re: Extending Lua for multiple light userdata types, Rena
- Re: Extending Lua for multiple light userdata types, Coda Highland
- Re: Extending Lua for multiple light userdata types, liam mail
- Re: Extending Lua for multiple light userdata types, Roberto Ierusalimschy
- RE: Extending Lua for multiple light userdata types, Richter, Jörg
- Re: Extending Lua for multiple light userdata types, Dirk Laurie