1 ! Copyright (C) 2008 Slava Pestov.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: accessors classes sequences kernel namespaces
4 make words math math.parser assocs ;
7 GENERIC: summary ( object -- string )
9 : object-summary ( object -- string )
10 class name>> " instance" append ;
12 M: object summary object-summary ;
30 ! Override sequence => integer instance
31 M: f summary object-summary ;
33 M: integer summary object-summary ;