lua-users home
lua-l archive

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


On Monday 28 July 2008, E. Wing wrote:
> Sorry, now I'm really confused:
> {1,2} and {1,2} look visually identical to me.

{1,2} is a call to a table constructor, it allocates a new and unique table 
and populates with values.  a new {1,2} allocates ANOTHER new and unique 
table, with the same values

try:

lua -e 'print ({1,2}=={1,2})'
==> false


-- 
Javier

Attachment: signature.asc
Description: This is a digitally signed message part.