mirror of
https://github.com/catseye/SixtyPical.git
synced 2024-11-26 14:49:15 +00:00
Clearing up a little mystery I had here.
This commit is contained in:
parent
e46c6f6c6e
commit
b3d2d0bfcf
@ -123,6 +123,10 @@ routine clear_screen
|
|||||||
// Game States
|
// Game States
|
||||||
// ----------------------------------------------------------------
|
// ----------------------------------------------------------------
|
||||||
|
|
||||||
|
//
|
||||||
|
// Because these all `goto save_cinv` at the end, they must have the same signature as that routine.
|
||||||
|
//
|
||||||
|
|
||||||
routine game_state_play
|
routine game_state_play
|
||||||
inputs joy2, pos
|
inputs joy2, pos
|
||||||
outputs delta, pos, dispatch_game_state, screen, screen1
|
outputs delta, pos, dispatch_game_state, screen, screen1
|
||||||
|
@ -1513,6 +1513,30 @@ But not if the vector is declared inappropriately.
|
|||||||
| }
|
| }
|
||||||
? IncompatibleConstraintsError
|
? IncompatibleConstraintsError
|
||||||
|
|
||||||
|
"Appropriately" means, if the routine affects no more than what is named
|
||||||
|
in the input/output sets of the vector.
|
||||||
|
|
||||||
|
| vector vec
|
||||||
|
| inputs a, x
|
||||||
|
| outputs x
|
||||||
|
| trashes a, z, n
|
||||||
|
|
|
||||||
|
| routine foo
|
||||||
|
| inputs x
|
||||||
|
| outputs x
|
||||||
|
| trashes z, n
|
||||||
|
| {
|
||||||
|
| inc x
|
||||||
|
| }
|
||||||
|
|
|
||||||
|
| routine main
|
||||||
|
| outputs vec
|
||||||
|
| trashes a, z, n
|
||||||
|
| {
|
||||||
|
| copy foo, vec
|
||||||
|
| }
|
||||||
|
= ok
|
||||||
|
|
||||||
Routines are read-only.
|
Routines are read-only.
|
||||||
|
|
||||||
| vector vec
|
| vector vec
|
||||||
|
Loading…
Reference in New Issue
Block a user