[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: luaproc thought
- From: Petite Abeille <petite.abeille@...>
- Date: Wed, 30 Sep 2009 01:52:58 +0200
On Sep 30, 2009, at 1:40 AM, Mark Hamburg wrote:
The differences are subtle, but the problems cited above are resolved.
What about something like the following, i.e. avoid inline in the
first place:
local function chunk( aFile )
local aContent = assert( aFile:read( '*a' ) )
assert( loadstring( aContent ) )
return aContent
end
luaproc.newproc( chunk( aFile ) )