[Bug-openmcl] type caching and redefining types

James Bielman jamesjb at jamesjb.com
Thu Mar 31 17:08:29 MST 2005


Hi,

Redefining types with DEFTYPE appears to not clear the
type from the cache:

Welcome to OpenMCL Version (Beta: Darwin) 0.14.3!
? (deftype test () 'string)
TEST
? (ccl::specifier-type 'test)
#<ARRAY-CTYPE (VECTOR CHARACTER)>
? (deftype test () 'keyword)
TEST
? (typep :keyword 'test)
NIL
? (ccl::specifier-type 'test)
#<ARRAY-CTYPE (VECTOR CHARACTER)>
? (ccl::clear-type-cache)
NIL
? (typep :keyword 'test)
(#<BUILT-IN-CLASS KEYWORD> #<BUILT-IN-CLASS SYMBOL> #<BUILT-IN-CLASS T>)
? (ccl::specifier-type 'test)
#<CLASS-CTYPE KEYWORD>

James



More information about the Bug-openmcl mailing list