Tim Starling has submitted this change and it was merged. Change subject: Support __pairs and __ipairs ......................................................................
Support __pairs and __ipairs Lua 5.2 introduces a nice feature where a metatable can override the standard behavior of the pairs() and ipairs() functions. That would be very useful in allowing a more standard syntax for our frame.args, and it's very easy to do both in C and in Lua. Change-Id: I846c0fcf74ea1b6874b222d977d910899de056b0 --- M library.c A tests/ipairs.phpt A tests/pairs.phpt 3 files changed, 179 insertions(+), 0 deletions(-) Approvals: Tim Starling: Verified; Looks good to me, approved jenkins-bot: Verified -- To view, visit https://gerrit.wikimedia.org/r/41000 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I846c0fcf74ea1b6874b222d977d910899de056b0 Gerrit-PatchSet: 3 Gerrit-Project: mediawiki/php/luasandbox Gerrit-Branch: master Gerrit-Owner: Anomie <[email protected]> Gerrit-Reviewer: Anomie <[email protected]> Gerrit-Reviewer: Demon <[email protected]> Gerrit-Reviewer: Tim Starling <[email protected]> Gerrit-Reviewer: Victor Vasiliev <[email protected]> Gerrit-Reviewer: jenkins-bot _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
