This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
viniciuslrangel's profile picture

Method return

Started by viniciuslrangel, 19 January 2016 - 03:10 PM
viniciuslrangel #1
Posted 19 January 2016 - 04:10 PM
I'm writing a peripheral and callMethod function I can return a lua table using Map, but, how can I put metatable in this?
SquidDev #2
Posted 19 January 2016 - 08:52 PM
CC doesn't provide a way to attach a metatable. You are limited to either a basic lookup table (a map) or a series of functions (ILuaObject)
viniciuslrangel #3
Posted 20 January 2016 - 01:15 AM
CC doesn't provide a way to attach a metatable. You are limited to either a basic lookup table (a map) or a series of functions (ILuaObject)
Oh… Okay… I will use lua program as interface, thanks.
Keridos #4
Posted 06 February 2016 - 09:23 AM
How can I return a map to give a lua table?
Konlab #5
Posted 10 April 2016 - 11:08 AM
How can I return a map to give a lua table?
return new Object[] { map };