[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: 5.2 'classes' without LUA_COMPAT_MODULE
- From: John Dunn <John_Dunn@...>
- Date: Wed, 11 Jul 2012 17:14:36 +0000
> 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.