https://bugzilla.wikimedia.org/show_bug.cgi?id=47096

--- Comment #3 from Brad Jorsch <[email protected]> ---
(In reply to comment #2)
> (In reply to comment #1)
> > Unfortunately, Lua 5.1 doesn't allow overriding the '#' operator on tables.
> 
> http://www.lua.org/manual/5.1/manual.html#2.8
> 
> "len": the # operation.
> 
> So wouldn't it be a matter of adding __len to the metatable, or is there some
> reason this can't be used?

__len doesn't work on strings or tables in 5.1.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to