lua-users home
lua-l archive

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


On 8 July 2015 at 00:19, Jay Carlson <nop@nop.com> wrote:
> This conversation might have been shorter if somebody said:
>
> "Tuples are a composite sequenced data type with value semantics."
>
> Note that "value semantics" implies that the contents must also have value
> semantics. This limits them to numbers, strings, booleans, tuples, and
> possibly light userdata and nil.
>
> Jay

Why?

Why can't you have a tuple that contains e.g. a string and a table?
It would be equal to any other tuple that has the same string and table inside.