lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



On 3 Jul 2007, at 02:52, Walt Rorie-Baety wrote:

Sorry if this has already been answered, but I've always wondered: has anyone ever thought of using the concatenate operator with a table, analogously to how it's used with strings? The awkwardness of combining two tables together has always irritated me, and the concatenate operation seems to me to represent the closest fit to the concept. Am I just dreaming, have I been standing too close to the metaphorical fumes given off by other programming languages, or is this a possible addition to the language space, if only as an experiment?

Maybe I don't understand your question, but why don't you just implement your own __concat metamethod that fits your specific problem?

With regards
-- Stefan