lua-users home
lua-l archive

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


>>>>> "Viacheslav" == Viacheslav Usov <via.usov@gmail.com> writes:

 Viacheslav> If you need this to pass optional flags, I would instead
 Viacheslav> consider passing them as multiple arguments, so that the
 Viacheslav> Lua code could do this:

 Viacheslav> dlopen('whatever') -- no flags
 Viacheslav> dlopen('whatever ', 'lazy')
 Viacheslav> dlopen('whatever ', 'lazy', 'global')

or use a table:

dlopen('whatever', { lazy = true, global = true })

or,

dlopen{ module = 'whatever', lazy = true }

-- 
Andrew.