[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: How do I get two dimensional array access notation for my (matrix) userdata?
- From: Javier Guerra Giraldez <javier@...>
- Date: Mon, 28 Jul 2008 23:56:01 -0500
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.