[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Slicing ideas
- From: Rob Kendrick <rjek@...>
- Date: Mon, 2 Apr 2012 11:19:06 +0100
On Mon, Apr 02, 2012 at 12:15:04PM +0200, steve donovan wrote:
> On Mon, Apr 2, 2012 at 12:09 PM, Rob Kendrick <rjek@rjek.com> wrote:
> > No. There is no intended meaning. One could write a __slice function
> > that did this, though.
>
> Ah, so it's sugar for this particular global __slice - or is this
> meant to be a metamethod of t?
t[1, 2, 3] is to __slice(t, 1, 2, 3) as t[1] is to __index(t, 1). ie,
a metamethod.
B.