mirror of
https://github.com/catseye/SixtyPical.git
synced 2024-11-22 17:32:01 +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
|
||||
// ----------------------------------------------------------------
|
||||
|
||||
//
|
||||
// Because these all `goto save_cinv` at the end, they must have the same signature as that routine.
|
||||
//
|
||||
|
||||
routine game_state_play
|
||||
inputs joy2, pos
|
||||
outputs delta, pos, dispatch_game_state, screen, screen1
|
||||
|
@ -1513,6 +1513,30 @@ But not if the vector is declared inappropriately.
|
||||
| }
|
||||
? 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.
|
||||
|
||||
| vector vec
|
||||
|
Loading…
Reference in New Issue
Block a user