[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Correct way to write C/Lua mixed module
- From: andre@...
- Date: Tue, 02 Oct 2012 20:12:43 +0000
Let me see if I got it right...
You're suggesting I separate the module in two different modules, one with the low level C functions, and another one with the high level, Lua interface which requires and uses the first one. Is that right?
Seems like a good way to go.
Thanks,
Andre
-----Original Message-----
From: Alexandre Erwin Ittner [mailto:alexandre@ittner.com.br]
Sent: Tuesday, October 2, 2012 01:29 PM
To: 'Lua mailing list'
Subject: Re: Correct way to write C/Lua mixed module
On Tue, Oct 2, 2012 at 1:52 PM, <andre@leiradella.com> wrote:
> 1. Is there a better way to handle a C/Lua mixed module? I don't need anything fancy, just register Lua and C functions.
What about creating a low-level module with the C functions and using
it for the high-level, user-facing, module? I think it's the most
elegant solution for these cases.
--
Alexandre Erwin Ittner - alexandre@ittner.com.br
OpenPGP pubkey 0x0041A1FB @ http://pgp.mit.edu