[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: 'table' as fallback for tables
- From: Daurnimator <quae@...>
- Date: Tue, 28 Jun 2016 16:41:49 +1000
On 28 June 2016 at 16:29, steve donovan <steve.j.donovan@gmail.com> wrote:
> However, I'm all for table.pack() returning a table which has a
> metatable with __len = self.n, and table.unpack() respecting this.
Perhaps something like this?
https://gist.github.com/daurnimator/aa23173220a5b3d1a97a
Which really doesn't need any changes to lua itself anyway; just a
vague agreement on 'one' standard sequence/array/list library.
- References:
- 'table' as fallback for tables, Dirk Laurie
- Re: 'table' as fallback for tables, Philipp Janda
- Re: 'table' as fallback for tables, Roberto Ierusalimschy
- Re: 'table' as fallback for tables, Philipp Janda
- Re: 'table' as fallback for tables, Tim Hill
- Re: 'table' as fallback for tables, Philipp Janda
- Re: 'table' as fallback for tables, Roberto Ierusalimschy
- Re: 'table' as fallback for tables, Philipp Janda
- Re: 'table' as fallback for tables, Coda Highland
- Re: 'table' as fallback for tables, Jay
- Re: 'table' as fallback for tables, Tim Hill
- Re: 'table' as fallback for tables, Dirk Laurie
- Re: 'table' as fallback for tables, steve donovan