lua-users home
lua-l archive

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


I was wondering if there's a way to create lua tables from using simple lua binder ?

In luabind I used a feature called luabind::object, which allowed me to create a lua object from C++ in the following fashion:

     luabind::object payload = luabind::newtable(Lua_state);
     payload["label"] = this->getOwnerGE()->getLabel();
     payload["value"] = 10;
     payload["another_value"] = "HELLO";

Is there an equivalent for this in SLB ?