[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: C style standards for Lua modules?
- From: "Wesley Smith" <wesley.hoke@...>
- Date: Wed, 9 May 2007 16:50:29 -0700
The PiL book has some guidlines for writing Lua modules but it doesn't
say anything about "C style". It just gives a description of what a
module should and shouldn't do. If you want you module to be ultra
portable, make it ANSI C compatible.
On 5/9/07, Mark Edgar <firstname.lastname@example.org> wrote:
> Are there C language style standards/guidelines for writing C language
> Lua modules?
There aren't any because there is no standard
repository/collection/library of Lua modules.
That said, the Lua libraries (io, math, string, table, etc) are
written in a typical, elegant style and also provide a model for how
to write Lua modules. These are the files listed under "Libraries" at