Baseline: tree as shared

This commit is contained in:
alexm committed 2026-10-05 03:03:38 +00:00
commit 31f2fb8a5a
1679 files changed
+1024562

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
struct RobotConfig(Copyable, Movable):
var name: String
var max_rate: Int
def __init__(out self, name: String, max_rate: Int):
self.name = name
self.max_rate = max_rate
def main():
# The fleet console re-badges an existing config under a new name.
var base = RobotConfig("base", 512)
var arm = RobotConfig("arm", base)
print("Robot:", arm.name, "max_rate:", arm.max_rate)