Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help,
read this .
rokit boy
Party member
Posts: 198 Joined: Wed Jan 18, 2012 7:40 pm
Post
by rokit boy » Sun Apr 01, 2012 8:36 pm
Robin wrote: rokit boy wrote: What is __len__?
The # operator. It is not overridable for tables in Lua 5.1 (though it will be for Lua 5.2).
rokit boy wrote: Btw. I smell python. Is it python inspired?
Yes.
Do you mean:
???
It is possible with tables:
3
u wot m8
nevon
Commander of the Circuloids
Posts: 938 Joined: Thu Feb 14, 2008 8:25 pm
Location: Stockholm, Sweden
Contact:
Post
by nevon » Sun Apr 01, 2012 9:03 pm
rokit boy wrote: Do you mean:
???
It is possible with tables:
3
Why don't you just try it and find out...?
Last edited by
nevon on Mon Apr 02, 2012 11:56 am, edited 1 time in total.
tentus
Inner party member
Posts: 1060 Joined: Sun Oct 31, 2010 7:56 pm
Location: Appalachia
Contact:
Post
by tentus » Mon Apr 02, 2012 12:41 am
nevon wrote:
Why don't you just try it and find out...?
rokit boy
Party member
Posts: 198 Joined: Wed Jan 18, 2012 7:40 pm
Post
by rokit boy » Mon Apr 02, 2012 11:47 am
tentus wrote: nevon wrote:
Why don't you just try it and find out...?
OT much...
u wot m8
Robin
The Omniscient
Posts: 6506 Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:
Post
by Robin » Mon Apr 02, 2012 2:32 pm
rokit boy wrote: Do you mean:
Yes.
rokit boy wrote: It is possible with tables:
That's not what I meant: you can't change the meaning of the # operator for tables. That changes in Lua 5.2, where
#foo looks at the metatable, even if
foo is a table.
tentus
Inner party member
Posts: 1060 Joined: Sun Oct 31, 2010 7:56 pm
Location: Appalachia
Contact:
Post
by tentus » Mon Apr 02, 2012 5:44 pm
rokit boy wrote:
OT much...
Maybe this will be clearer:
nevon wrote:
Why don't you just try it and find out...?
Users browsing this forum: Ahrefs [Bot] , Bing [Bot] , Google [Bot] and 5 guests