|
On Jun 24, 2014, at 6:35 PM, Andrew Starks <andrew.starks@trms.com> wrote: Even distinct types has problems. Consider tables, would t[2] and t[2.0] access the same entry? If not, lots of existing Lua code is going to break. Also see the thread regarding rounding floats to integers when (e.g.) indexing a string. Generally I agree, but some of the discussions about (e.g.) flagging errors when passed “non-integer” string indexes worried me. If by “non-integer” the posters really mean “non-integral” than thats fine, but I think it’s important to be precise, especially as the whole number/float/integer thing is already causing a lot of confusion. —Tim |