summaryrefslogtreecommitdiff
path: root/indra/llui/lllazyvalue.h
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2024-08-29 21:36:39 -0400
committerNat Goodspeed <nat@lindenlab.com>2024-08-29 21:36:39 -0400
commit2d5cf36be6e0e367efec2bfa01378146269f33db (patch)
tree082b0c6b35e2d6cb76078aca32da50c3604e620c /indra/llui/lllazyvalue.h
parenta098a3d42bf862e0e3789e21f6b8f3f0e71d60d0 (diff)
Support next(), pairs(), ipairs() for LL.setdtor() table proxies.
Replace the global next(), pairs() and ipairs() functions with a C++ function that drills down through layers of setdtor() proxy objects and then forwards the updated arguments to the original global function. Add a Luau __iter() metamethod to setdtor() proxy objects that, like other proxy metamethods, drills down to the underlying _target object. __iter() recognizes the case of a _target table which itself has a __iter() metamethod. Also add __idiv() metamethod to support integer division. Add tests for proxy // division, next(proxy), next(proxy, key), pairs(proxy), ipairs(proxy) and 'for k, v in proxy'. Also test the case where the table wrapped in the proxy has an __iter() metamethod of its own.
Diffstat (limited to 'indra/llui/lllazyvalue.h')
0 files changed, 0 insertions, 0 deletions