lua-users home
lua-l archive

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

It was thus said that the Great Marc Balmer once stated:
> I think it is best to check where a argument is a single string and then
> use luaL_checkoption _or_ if it is a table and then iterate over the table
> values.  That only uses Lua idioms and does not introduce a new syntax for
> options:
> dlopen('library', 'lazy')
> or 
> dlopen('library, { 'lazy', 'global' })
> or is this still to much "automagic"?

  I like this option the best.