|
On Fri, Nov 6, 2009 at 3:06 PM, steve donovan <steve.j.donovan@gmail.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 <zweifel@gmail.com> 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
10
> pcall(ls,'one','two')
one two