On Fri, Nov 6, 2009 at 3:06 PM, steve donovan <email@example.com> wrote:This illustrates the situation with pure Lua, applies to C API as well.
> On Fri, Nov 6, 2009 at 2:59 PM, zweifel <firstname.lastname@example.org> wrote:
>> I checked the arg variable and it is nil. I am reading things about
>> debug.getinfo now, but I found nothing about anonymous calls...
Lua 5.1.2 Copyright (C) 1994-2007 Lua.org, PUC-Rio
> ls = loadstring 'print(...)'
> = ls
function: 0x807d490 --> compiled chunk (won't have a name)
> pcall(ls,10) --> call with arg, prints it out