lua-users home
lua-l archive

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


On Feb 2, 2012, at 4:12 PM, Pierre-Yves Gérardy wrote:

>  I may have
> written a few things differently, but it is mostly a matter of taste.

Talking of which, i.e. matter of taste, what's the rational for exporting your private methods?

E.g.:

function lstore:_load()

Why expose _load() to the outside world?

Wouldn't a local function suffice?

E.g.

local function _load( self )

Just curious.