Skip to content

Commit 82b3f94

Browse files
authored
Merge pull request #52 from NiceAndPeter/claude/read-todo-continue-014CZy4t8H5HEjzPwUaug8Us
Read Todo and continue
2 parents 9e0bf9f + 574c92c commit 82b3f94

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/objects/lobject.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1649,6 +1649,14 @@ class Table : public GCBase<Table> {
16491649
const Value* getArray() const noexcept { return array; }
16501650
void setArray(Value* arr) noexcept { array = arr; }
16511651

1652+
// Phase 115.3: std::span accessors for array part
1653+
std::span<Value> getArraySpan() noexcept {
1654+
return std::span(array, asize);
1655+
}
1656+
std::span<const Value> getArraySpan() const noexcept {
1657+
return std::span(array, asize);
1658+
}
1659+
16521660
Node* getNodeArray() noexcept { return node; }
16531661
const Node* getNodeArray() const noexcept { return node; }
16541662
void setNodeArray(Node* n) noexcept { node = n; }

0 commit comments

Comments
 (0)