[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: luaL_ prefix in lauxlib.h
- From: steve donovan <steve.j.donovan@...>
- Date: Thu, 18 Nov 2010 07:20:52 +0200
On Wed, Nov 17, 2010 at 4:02 PM, Alexander Gladysh <agladysh@gmail.com> wrote:
> I'd trade these two features for table concatenation operator. :-)
Ah, but it's easy enough to do in pure Lua, providing you have a
special table constructor function T and use it liberally. Make the
metatable.__index = table and metatable.__concat = table.concat, which
is a fairly straightforward function for _lists_.
For the hash part, I'd guess it would work like union. But in the case
of duplicate keys, which table's value wins?
steve d.