2d array from c++ to lua

So,is Passing a multidimensional array from C++ to Lua actually possible?

Or should I just make it a normal array,pass it to Lua and convert it there to a 2d array again?

And if its possible lets say I've got this

function AI(Array)
-- can I just call it like this?
   num= Array[1][2];

Answers


May be something like a binding library would be of help http://sourceforge.net/projects/luabind/


well it seems like at least as far as i saw you cant do this so the best option is just to send it like a unidimensional array and then convert it back in LUA


Need Your Help

Change Google Drive settings in the Admin Console of Google Appsor not

google-drive-api google-apps

Google Apps admin console has a section dedicated to Google Drive settings for all the domain. Through these you can decide if users can share or not documents outside the domain, etc. Unfortunatel...

How to erase SQL queries from ActiveRecord::Base.logger

sql ruby-on-rails

I'm developing an application using Ruby on Rails.