[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: How to add C functions to a Lua module within the require process?
- From: Javier Guerra <javier@...>
- Date: Thu, 3 Dec 2009 10:16:45 -0500
2009/12/3 Ignacio Burgueño <email@example.com>:
> So far, so good. The problem I have is that I need to add a C function to
> Foo.Bar and I can't find a good way to do that.
my first idea would be to put it in Foo, using a discouraging name
(something like Foo.__to_be_defined__). in the Bar code you can use
it, or maybe just give it a better name under Bar's namespace