Re: Odd behaviour of table.insert and table.remove (Lua 5.2.1)
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Odd behaviour of table.insert and table.remove (Lua 5.2.1)
- From: Andrew Starks <andrew.starks@...>
- Date: 2013年1月28日 10:38:27 -0600
I like the conclusion here and I hate to prolong an dying thread when it just seemed like it was going to expire with such productivity...
<pedantic>The word "bug" was put into quotes for good reason, however those quotes fail to change the word's meaning. You're looking for a feature, not pointing out a bug. That's true, no matter how wrong the within-specification-behavior seems to you. If I were the programmer that wrote that code, I'd dig my heals in and defend it, even if I saw merit in the proposed suggestion. But I'm petty that way.</pedantic>
A nice feature that would play well with the yin-yang of the universe: Negative indexes working as the C-API's stack does.
-Andrew
On Fri, Jan 25, 2013 at 11:05 AM, Dirk Laurie
<dirk.laurie@gmail.com> wrote:
2013年1月25日 John Hind <john.hind@zen.co.uk>:
>
> I'll do what I should have done in the first place, post a PowerPatch on the
> Wiki and let people take it or leave it.
>
Or post a module, say "stable", and let people write (or not)
table.insert, table.remove = stable.insert, stable.remove