https://bugzilla.wikimedia.org/show_bug.cgi?id=47096
--- Comment #2 from Robert Rohde <[email protected]> --- (In reply to comment #1) > (In reply to comment #0) > > When data is accessed through mw.LoadData, and that data contains nested > > tables, the # operator (which is approximately but not exactly table length) > > does not work correctly. > > This is documented: [[mw:Extension:Scribunto/Lua reference > manual#mw.loadData]]. > > 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? -- 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
