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