[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Stack usage behaviour
- From: Tim Channon <tc@...>
- Date: Mon, 11 Nov 2013 18:23:45 +0000
On 11/11/2013 17:39, Dirk Laurie wrote:
> 2013/11/11 Tim Channon <email@example.com>:
>> Can someone please clarify fundamental stack behaviour.
>> I am writing a significant Lua binary library.
>> abc = mylib(table)
>> On entry to the C the Lua stack contains one parameter item.
>> On return from C there is one new item created by the C library.
>> Behaviour question:- Should the C remove the original item or leave it
>> in place? (if left in place, what parameter count should be returned?)
> Leave it there. Lua will clean up everything.
Thank you and to all who answer.