[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: "Proper" way to use lua
- From: Jeff Williams <jwilliams@...>
- Date: Thu, 14 Aug 2003 11:17:06 -0400
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?