[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: How to properly initialize a module?
- From: Ezequiel García <elezegarcia@...>
- Date: Tue, 6 Dec 2011 13:05:04 -0800 (PST)
--- El mar 6-dic-11, Rob Hoelz <rob@hoelz.ro> escribió:
> De: Rob Hoelz <rob@hoelz.ro>
> Asunto: Re: How to properly initialize a module?
> Para: lua-l@lists.lua.org
> Fecha: martes, 6 de diciembre de 2011, 17:48
> I should probably clarify that
> example a bit; if you try this:
>
> local m = require 'mymodule'
> m.greet()
>
> you'll see "Hello!". If you try this:
>
> local m = require 'mymodule' 'Guten Tag!'
> m.greet()
>
> you'll see "Guten Tag!".
>
Thanks, I've learned two things today: 1. More lua magic, 2. The existence
of Gist. :)
This made my day twice ;)
Ezequiel.