lua-users home
lua-l archive

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


On Mon, Apr 2, 2012 at 11:47 AM, Rob Kendrick <rjek@rjek.com> wrote:
> foo = t[1, 2, 3] -> __slice(t, 1, 2, 3)

Just to check the intended meaning; t[1,2,3] gives you {t[1],t[2],t[3]} ?

Pythonic slices use ranges, rather than explicit sequences, so the
term 'slice' might be a bit confusing.

(And there's others who would think that t[i,j] is 2D array access)

steve d.