lua-users home
lua-l archive

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

I am adding scripting to my program using lua.  I am curious if my method is in line with the general philosophy behind lua or if I am doing things completely the wrong way.

For each instance of a class in my program, I create a lua state for the instance (it is a member var) and then I register funcs with that lua state.  

Is this the way I should do it?  Or should there only be one lua state in the entire program and all my clases share that state?

I guess ultimately my question is more like:

Is lua designed to have hundreds of open states? or just a few?