lua-users home
lua-l archive

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


Having lua_pushinteger work with ptrdiff_t is convenient and it would be much less convenient if it took something considerably shorter. The "problem" is that there isn't a standard numeric type which means "an integer that fits exactly within a double".

I could see having versions of the APIs -- possibly in lauxlib -- which actually check things like pushed integers being in range, retrieved numbers actually being integers, etc..

Mark