lua-users home
lua-l archive

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



On 22/11/14 10:04 PM, Tom N Harris wrote:
On Friday, November 21, 2014 07:27:12 PM Thiago L. wrote:
Somehow Java gets away with it...
Java does not have tables or anything like it. Only POD types and simple
arrays. Everything else is built on top of the VM as classes.

So what you're really saying is if you want to track the number of items in a
table, the best way is to code your own item-counting class using metamethods.
Doesn't solve the problem for arbitrary input.
And I agree.

Java is also much larger than Lua.


--
Disclaimer: these emails are public and can be accessed from <TODO: get a non-DHCP IP and put it here>. If you do not agree with this, DO NOT REPLY.