🎯 Phase B: ArrayBox Arc<RwLock> state sharing implementation complete

Co-authored-by: moe-charm <217100418+moe-charm@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-08-15 04:34:04 +00:00
parent cdcfa98dd1
commit f627ceeb61
4 changed files with 114 additions and 11 deletions

View File

@ -105,7 +105,7 @@ impl NyashInterpreter {
name: name.clone(),
span: expression.span()
})?;
Ok((*shared_var).clone_box()) // Convert for external interface
Ok((*shared_var).share_box()) // 🎯 State-sharing instead of cloning
}
ASTNode::BinaryOp { operator, left, right, .. } => {