this shows how a c++/lua hybrid can be stored in an array