JumpNotZero/NLua — Issue #3: Decide on a way to handle pushing large numbers to Lua
Author: JumpNotZero
Created: 2011-11-15 04:17:19+00:00
State: open

Most commonly, Lua will only support numbers in the form of a double. This means if you want a 64-bit unsigned integer in Lua from C#, you can not really do that safely without some kind of special handling on the Lua side of things.

The options currently are:
* When pushing a number too large from C# to Lua, throw an exception
* Simply do not support pushing of any data type capable of holding a value larger than a double from C# to Lua and support light or full userdata objects in Lua capable of manipulating these data types at the cost of performance
* Hope the programmers know what they are doing and silently ignore the conversion problem