lua-users home
lua-l archive

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

> Lua 5.2 does not recommend modules to create globals. Instead, the open function 
> should return the result from luaL_newlib and the library should be used like this:
>  local Test = require"Test"
Assuming I want globals to be prestuffed into my script engine ( much like the built in lua modules math, string, etc ) is the way I'm currently doing things make sense? This is an embedded script engine so without my libraries existing in the script engine the user can't do anything at all.