[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: Generating a Lua function in C
- From: "John Hind" <john.hind@...>
- Date: Wed, 4 Feb 2009 10:43:01 -0000
Thanks for that! Truly there is nothing new under the sun (or the moon for
that matter!).
Your code has given me some useful pointers, including that my copying from
the stack to the constants array in the prototype may be over-complicated. I
was paranoid about not screwing up the memory management/garbage collection
and was worried about a simple copy like this:
f->k[i]=L->base[2];
Is this really safe? Even for a string? How does the garbage collector know
about this reference?
-----Original Message-----
Luiz Henrique de Figueiredo Sent: 03 February 2009 20:22
>>If you're interested in serializing via Lua bytecode, see this:
>> http://lua-users.org/lists/lua-l/2007-03/msg00546.html
Attachment:
smime.p7s
Description: S/MIME cryptographic signature