lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Am Mi., 29. Nov. 2023 um 10:47 Uhr schrieb Diederick Huijbers
<diederickh@gmail.com>:
...

Your questions sound a bit "very general"... . (you do NOT describe
your "real world" application in any details - knowing this would for
your result maybe in better advising..).

Did you check the book "Programming in Lua" of Roberto for typical
approaches to link Lua to C? (this books describes a detail
applications e. g. very nicely for bit arrays...).

You could also look in Lua sourcecode file liolib.c, who lua by itself
implements the file library / metafunctions for file handling - this I
think is also a very nice example how to implement such meta
functionality in Lua.