factor/library/generic/null.factor

16 lines
329 B
Factor
Raw Normal View History

2005-02-18 20:37:01 -05:00
! Copyright (C) 2004, 2005 Slava Pestov.
! See http://factor.sf.net/license.txt for BSD license.
IN: generic
2005-02-18 20:37:01 -05:00
USING: kernel words ;
! Null metaclass with no instances.
SYMBOL: null
2005-08-14 18:13:16 -04:00
null { } "types" set-word-prop
2005-08-14 17:33:45 -04:00
null [ 2drop 2drop ] "add-method" set-word-prop
2005-08-14 17:33:45 -04:00
null [ drop f ] "predicate" set-word-prop
2005-08-14 17:33:45 -04:00
null null define-class