Ok so, this is more a sanity check than anything else.
Lets asume we have a struct called lua_State, now I need to create a uncertain amount of unique lua_State\'s.
Can't you use std::map and use the script name as an index to the state?
std::map