lua-users home
lua-l archive

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


Hi,

I'm fairly new to Lua.  I've managed to embed it within a game engine and
also have an API available to it so that the scripts can be used to control
high level aspects of the game.  However I would like to add a new data
type: integer, to the language.  I have converted the number type from
double to float for now, however I still think that a new type that is
basically a C int is required for my purposes.

Has anybody done this in the past?  How's the best way to go about it and
are there any pitfalls?

Mark Allen