lua-users home
lua-l archive

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

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

luaproc.newproc( chunk( aFile ) )