[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Making a modifiable copy of a string in C
- From: Sean Conner <sean@...>
- Date: Sun, 7 Apr 2019 21:09:35 -0400
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.
-spc