Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
compay
on Dec 17, 2011
|
parent
|
context
|
favorite
| on:
[ANN] Lua 5.2.0 (final) now available
An easy way is to just define your functions in a table, and at the end of the file to be required, return the table. This was the pattern used in Lua before 5.1. The source for Luacov provides a clear example:
https://github.com/keplerproject/luacov/blob/master/src/luac...
Consider applying for YC's Winter 2027 batch!
Applications
are open till November 2.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
https://github.com/keplerproject/luacov/blob/master/src/luac...