[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Passing C struct values automatically to Lua
- From: steve donovan <steve.j.donovan@...>
- Date: Fri, 6 Nov 2009 15:11:31 +0200
On Fri, Nov 6, 2009 at 3:06 PM, steve donovan <email@example.com> wrote:
> 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...
This illustrates the situation with pure Lua, applies to C API as well.
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