[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: unpack and table.unpack
- From: Javier Guerra Giraldez <javier@...>
- Date: Wed, 16 Oct 2013 09:04:49 -0500
On Wed, Oct 16, 2013 at 1:31 AM, Choonster TheMage
<choonster.2010@gmail.com> wrote:
> If you're writing for 5.1 and 5.2, you can use `local unpack = unpack or
> table.unpack` at the top of the file and then call it as `unpack`.
i'd slightly prefer to do:
table.unpack = table.unpack or unpack
to be forward-compatible instead of backward
--
Javier