lua-users home
lua-l archive

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


On Tue, Apr 1, 2014 at 11:57 AM, Moose <moose@posteo.de> wrote:
> b) It feels somehow 'hacky', 'non-canonical'. I was hoping that use case is
> so common, there must be a 'way to do' that is more like 'This is what
> everybody does'.

It's the first thing any Lua person would do - if they want some
initialization to happen once, then let require() do that job.

And I don't understand - the loading _will_ happen exactly once.