Skip to content
Snippets Groups Projects

Fix __len metamethod ignored on tables

Merged James R. requested to merge table-len-metamethod into next

__len metamethods only work on userdata currently. Without this patch the following script prints 3--the size of the table--instead of the value returned by the metamethod. len.lua

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading