lua-users home
lua-l archive

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


The 'true.lua' file still takes a non-zero and non-trivial size on disk due to the inode structure. (http://stackoverflow.com/questions/3618820/how-many-bytes-per-inodes)

Thus the following is smaller module with your same requirements:

package.loaded['true']=true
assert(require'true' == true)

Not saying what I have cannot be smaller, but don't make absolute statements that aren't true.

Derek

On Mon, Feb 20, 2017 at 5:31 PM, Martin <eden_martin_fuhrspam@gmx.de> wrote:


On 02/20/2017 06:05 AM, Soni L. wrote:
> True is a simple module that evaluates to true. It is also the smallest
> Lua module ever.
>
> Repo: https://bitbucket.org/TeamSoni/true
>
> Features:
> - Smallest Lua module possible.
> - It's true!
>
> Usage:
>
> assert(require "true" == true)
>
Nice. You won smallest lua module contest!

But where is license, readme, usage example, self-tests via standalone
test system, inlined docs in source, external docs, training course
videos and product site? You can't just release source these days!

-- Martin