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

--- Comment #1 from Brad Jorsch <[email protected]> ---
(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.


> Experimenting with more complicated versions of this (i.e. tables nested
> inside
> tables nested inside tables) led to even worse behavior that seemed to point
> to
> uninitialized memory being returned, i.e. random values.  It also managed to
> trigger the Wikimedia Foundation Error Message in some cases with complaints
> about out of memory errors.  I'm not really sure why.

If you can reproduce that, that would be much more interesting.

-- 
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