lua-users home
lua-l archive

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


What's the point of doing {{"r",1},{"g",2},{"b",3},'etc'}?

This requires indexing first by index for the table and then by the
color letter which seems redundant to me.  Would it be better like
{r=1,g=2,b=3,'etc'}?

wes

On 11/5/07, Carl Dougan <carl.dougan@gmail.com> wrote:
> On 11/5/07, Carl Dougan <carl.dougan@gmail.com> wrote:
> > > There's a patch which sounds similar to what you want:
> > > http://lua-users.org/wiki/LuaPowerPatches and grep table, should be
> > > the first hit.
> > >
> > > Ben
> > >
> >
> > Thanks a lot. That solves the problem.
> > It would be nice not to have to use a patched lua though.
> > I hope the patch or something similar makes it into the language.
> > Carl
> >
>
> hmm.. I'm using LuaJIT - so it probably wont be trivial to apply the
> patch. oh well
>