core: swap 3append -> glue
parent
3ab0d03a19
commit
0e14f767ee
|
@ -26,7 +26,7 @@ GENERIC: effect>string ( obj -- str )
|
||||||
M: string effect>string ;
|
M: string effect>string ;
|
||||||
M: word effect>string name>> ;
|
M: word effect>string name>> ;
|
||||||
M: integer effect>string number>string ;
|
M: integer effect>string number>string ;
|
||||||
M: pair effect>string first2 [ effect>string ] bi@ ": " swap 3append ;
|
M: pair effect>string first2 [ effect>string ] bi@ ": " glue ;
|
||||||
|
|
||||||
: stack-picture ( seq -- string )
|
: stack-picture ( seq -- string )
|
||||||
dup integer? [ "object" <repetition> ] when
|
dup integer? [ "object" <repetition> ] when
|
||||||
|
|
|
@ -77,7 +77,7 @@ TUPLE: check-method class generic ;
|
||||||
3tri ; inline
|
3tri ; inline
|
||||||
|
|
||||||
: method-word-name ( class word -- string )
|
: method-word-name ( class word -- string )
|
||||||
[ name>> ] bi@ "=>" swap 3append ;
|
[ name>> ] bi@ "=>" glue ;
|
||||||
|
|
||||||
PREDICATE: method-body < word
|
PREDICATE: method-body < word
|
||||||
"method-generic" word-prop >boolean ;
|
"method-generic" word-prop >boolean ;
|
||||||
|
|
|
@ -128,7 +128,7 @@ M: ratio >base
|
||||||
[
|
[
|
||||||
[ numerator (>base) ]
|
[ numerator (>base) ]
|
||||||
[ denominator (>base) ] bi
|
[ denominator (>base) ] bi
|
||||||
"/" swap 3append
|
"/" glue
|
||||||
] bi* append
|
] bi* append
|
||||||
negative? get [ CHAR: - prefix ] when
|
negative? get [ CHAR: - prefix ] when
|
||||||
] with-radix ;
|
] with-radix ;
|
||||||
|
|
Loading…
Reference in New Issue