Handbook
Glossary
define-accessors ( class specs -- )
Factor handbook
»
The language
»
Objects
»
Low-level slot operations
Prev:
define-slot-methods ( class slot-spec -- )
Next:
slot ( obj m -- value )
Vocabulary
slots
Inputs
class
a
class
specs
a
sequence
of
slot-spec
s
Outputs
None
Word description
Defines slot methods.
Notes
Calling this word directly is not necessary in most cases. Higher-level words call it automatically.
Definition
USING:
kernel
sequences
;
IN:
slots
:
define-accessors
( class specs -- )
[
define-slot-methods
]
with
each
;