Rocket has a plan for a test ship.
He wants its speed to match its height.
He could write the same number two times.
But Nova knows a faster way.
A line can copy one box into another!
Raven wonders if the first box goes empty.
Set speed to height copies a number.
Nova peeks in the height box.
Nova puts the same number in speed.
set height to 4 set speed to height say speed say height
Height still holds 4.
A copy does not empty a box.
Now both boxes hold 4!
Build a copy test.
Speed must match height.
Nova says speed, then lands.
The copy happens when its line runs.
Later lines about height do not reach speed.
| program | speed holds 4? |
|---|---|
| set height to 4, set speed to height | ? |
| set height to 2, set speed to height | ? |
| set height to 4, set speed to height, change height by 1 | ? |
| set height to 4, set speed to height, change speed by 1 | ? |
Set speed to height makes a copy.
Height keeps its number too.
See you tomorrow, Crew!