lua-users home
lua-l archive

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


On 8 December 2011 13:22, Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br> wrote:
>> I still wonder why package.path/cpath are strings rather than tables...
>
> If you have a table of paths, it's easy to convert it to a string with
>        table.concat(t,";")
>

Its not an issue of conversion; but of modification (adding an entry
is much easier and sensible with table.insert; and easy to remove with
table.remove)
Having a table really does seem the sensible behaviour.