lua-users home
lua-l archive

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


On 30 Aug 2007, at 12:47, David Kastrup wrote:


On a different tack: maybe one could optimize usage like

   for i=1,#{...} do something(({...})[i])

to not actually create tables in order not to have to use select at
all?  That would make for more consistency in a different area.
Incidentally, {...}[i] is not allowed.

A slight aside: you do realise that #{...} and select('#', ...) don't have quite the same meaning?

drj