lua-users home
lua-l archive

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


On Wed, 30 Dec 2009, Paul Beckingham wrote:
>
> The product passes a handle to the Lua script.  The product then
> implements a series of functions that the Lua can call, to get more
> data, modify data. Pro: Minimal initial data transfer, marshaling on
> demand Con: ?

The handle should be a userdata with a metatable so that the script can
access variables as handle.variable and call methods as handle:method().

Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
GERMAN BIGHT HUMBER: SOUTHWEST 5 TO 7. MODERATE OR ROUGH. SQUALLY SHOWERS.
MODERATE OR GOOD.