git @ Cat's Eye Technologies SixtyPical / b3d2d0b
Clearing up a little mystery I had here. Chris Pressey 3 years ago
2 changed file(s) with 28 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
122122 // Game States
123123 // ----------------------------------------------------------------
124124
125 //
126 // Because these all `goto save_cinv` at the end, they must have the same signature as that routine.
127 //
128
125129 routine game_state_play
126130 inputs joy2, pos
127131 outputs delta, pos, dispatch_game_state, screen, screen1
15121512 | }
15131513 ? IncompatibleConstraintsError
15141514
1515 "Appropriately" means, if the routine affects no more than what is named
1516 in the input/output sets of the vector.
1517
1518 | vector vec
1519 | inputs a, x
1520 | outputs x
1521 | trashes a, z, n
1522 |
1523 | routine foo
1524 | inputs x
1525 | outputs x
1526 | trashes z, n
1527 | {
1528 | inc x
1529 | }
1530 |
1531 | routine main
1532 | outputs vec
1533 | trashes a, z, n
1534 | {
1535 | copy foo, vec
1536 | }
1537 = ok
1538
15151539 Routines are read-only.
15161540
15171541 | vector vec