Handbook
Glossary
new-block ( class -- block )
Factor handbook
»
Developer tools
»
The prettyprinter
»
Extending the prettyprinter
»
Prettyprinter sections
»
Prettyprinter section protocol
Prev:
new-section ( length class -- section )
Next:
add-section ( section -- )
Vocabulary
prettyprint
.
sections
Inputs
class
an
object
Outputs
block
an
object
Definition
USING:
accessors
kernel
;
IN:
prettyprint.sections
:
new-block
( class -- block )
0
swap
new-section
V{
}
clone
>>sections
;
inline