present: add present for pointer
parent
233c3dcebd
commit
f24a2e8ef7
|
@ -1,7 +1,7 @@
|
||||||
! Copyright (C) 2008, 2009 Slava Pestov.
|
! Copyright (C) 2008, 2009 Slava Pestov.
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: accessors effects io.pathnames kernel math math.parser
|
USING: accessors alien.c-types effects io.pathnames kernel math
|
||||||
quotations sequences strings vocabs words ;
|
math.parser quotations sequences strings vocabs words ;
|
||||||
IN: present
|
IN: present
|
||||||
|
|
||||||
GENERIC: present ( object -- string )
|
GENERIC: present ( object -- string )
|
||||||
|
@ -34,3 +34,6 @@ M: callable present
|
||||||
[ [ present ] map " " join ]
|
[ [ present ] map " " join ]
|
||||||
[ drop " ]" ] tri 3append
|
[ drop " ]" ] tri 3append
|
||||||
] if-empty ;
|
] if-empty ;
|
||||||
|
|
||||||
|
M: pointer present
|
||||||
|
to>> name>> "*" append ;
|
||||||
|
|
Loading…
Reference in New Issue