lua-users home
lua-l archive

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


> One thing to watch out for here is that on 64 bit systems a 
> double cannot hold a pointer, if it is returned/passed to a C 
> function.  This is something that has been problematic for us 
> in the past with other things.  Of course the correct means 
> for doing this in Lua is to define user data to represent the 
> pointer, which works nicely.  Just something to watch out for though.

User data pointers are separate from the number type in Lua.  If you
need just a straight pointer, though, without the user data
requirements, try the LuaState distribution:
http://workspacewhiz.com/Other/LuaState/LuaState.html

-Josh