Handbook
Glossary
score<< ( value object -- )
Vocabulary
accessors
Inputs
value
an
object
object
an
object
Outputs
None
Definition
IN:
accessors
GENERIC:
score<<
( value object -- )
Methods
USING:
accessors
kernel
math
slots
slots.private
snake-game.game
;
M:
snake-game
score<<
[
dup
integer?
[
\
integer
bad-slot-value
]
unless
]
dip
7
set-slot
;
inline
USING:
accessors
kernel
math
slots
slots.private
tetris.game
;
M:
tetris
score<<
[
dup
integer?
[
\
integer
bad-slot-value
]
unless
]
dip
6
set-slot
;
inline