[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Embedding Lua in an application
- From: Tony Finch <dot@...>
- Date: Sat, 2 Jan 2010 16:52:28 +0000
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.