[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Odd behaviour of table.insert and table.remove (Lua 5.2.1)
- From: Andrew Starks <andrew.starks@...>
- Date: Mon, 28 Jan 2013 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.
On Fri, Jan 25, 2013 at 11:05 AM, Dirk Laurie <firstname.lastname@example.org>
2013/1/25 John Hind <email@example.com>:
Or post a module, say "stable", and let people write (or not)
> 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.
table.insert, table.remove = stable.insert, stable.remove