refactor: rename shallow_copy -> shallow_move + streamline

Use RCollector.std_copy_for where appropriate
This commit is contained in:
Roland Conybeare 2026-04-04 16:33:35 -04:00
commit 8ac5ba9bbb
28 changed files with 45 additions and 62 deletions

View file

@ -34,14 +34,9 @@ namespace xo {
}
DInteger *
DInteger::shallow_move(obj<AAllocator> mm) const noexcept
DInteger::shallow_move(obj<ACollector> gc) noexcept
{
DInteger * copy = (DInteger *)mm.alloc_copy((std::byte *)this);
if (copy)
*copy = *this;
return copy;
return gc.std_copy_for(this);
}
size_t