Handbook
Glossary
SLOT-PROTOCOL:
Factor handbook
»
The language
»
Objects
»
Delegation
Prev:
define-protocol ( protocol wordlist -- )
Next:
BROADCAST:
Vocabulary
delegate
Syntax
SLOT-PROTOCOL: protocol-name slots... ;
Word description
Defines a protocol consisting of reader and writer words for the listed slot names.
Definition
USING:
arrays
kernel
lexer
parser
sequences
slots
;
IN:
delegate
SYNTAX:
SLOT-PROTOCOL:
scan-new-word
";"
[
[
reader-word
]
[
writer-word
]
bi
2array
]
map-tokens
concat
define-protocol
;