TRUE CLIPS> (batch "v610fun.bat") TRUE CLIPS> (clear) CLIPS> (sort) [ARGACCES1] Function 'sort' expected at least 1 argument. CLIPS> (sort 8) [ARGACCES2] Function 'sort' expected argument #1 to be of type symbol. CLIPS> (sort 8.1) [ARGACCES2] Function 'sort' expected argument #1 to be of type symbol. CLIPS> (sort a) [ARGACCES2] Function 'sort' expected argument #1 to be of type function name, deffunction name, or defgeneric name. FALSE CLIPS> (sort "a") [ARGACCES2] Function 'sort' expected argument #1 to be of type symbol. CLIPS> (sort [a]) [ARGACCES2] Function 'sort' expected argument #1 to be of type symbol. CLIPS> (sort >) () CLIPS> (sort > 3 2 5 1 2) (1 2 2 3 5) CLIPS> (sort agenda 3 2 5 1 2) [ARGACCES2] Function 'sort' expected argument #1 to be of type function name expecting two arguments. FALSE CLIPS> (deffunction str> (?a ?b) (> (str-compare ?a ?b) 0)) CLIPS> (sort str> ax aa dj ce bx) (aa ax bx ce dj) CLIPS> (deffunction three (?a ?b ?c) (> ?a ?b ?c)) CLIPS> (sort three 4 8 2 5 3) [ARGACCES2] Function 'sort' expected argument #1 to be of type deffunction name expecting two arguments. FALSE CLIPS> (clear) CLIPS> (get-class-defaults-mode) convenience CLIPS> (get-class-defaults-mode 10) [ARGACCES1] Function 'get-class-defaults-mode' expected exactly 0 arguments. CLIPS> (set-class-defaults-mode) [ARGACCES1] Function 'set-class-defaults-mode' expected exactly 1 argument. CLIPS> (set-class-defaults-mode 10) [ARGACCES2] Function 'set-class-defaults-mode' expected argument #1 to be of type symbol. CLIPS> (set-class-defaults-mode symbol) [ARGACCES2] Function 'set-class-defaults-mode' expected argument #1 to be of type symbol with value conservation or convenience. convenience CLIPS> (set-class-defaults-mode conservation x) [ARGACCES1] Function 'set-class-defaults-mode' expected exactly 1 argument. CLIPS> (defclass A (is-a USER) (slot x)) CLIPS> (describe-class A) ================================================================================ ******************************************************************************** Concrete: direct instances of this class can be created. Reactive: direct instances of this class can match defrule patterns. Direct Superclasses: USER Inheritance Precedence: A USER OBJECT Direct Subclasses: -------------------------------------------------------------------------------- SLOTS : FLD DEF PRP ACC STO MCH SRC VIS CRT OVRD-MSG SOURCE(S) x : SGL STC INH RW LCL RCT EXC PRV RW put-x A Constraint information for slots: SLOTS : SYM STR INN INA EXA FTA INT FLT x : + + + + + + + + RNG:[-oo..+oo] -------------------------------------------------------------------------------- Recognized message-handlers: init primary in class USER delete primary in class USER create primary in class USER print primary in class USER direct-modify primary in class USER message-modify primary in class USER direct-duplicate primary in class USER message-duplicate primary in class USER get-x primary in class A put-x primary in class A ******************************************************************************** ================================================================================ CLIPS> (set-class-defaults-mode conservation) convenience CLIPS> (get-class-defaults-mode) conservation CLIPS> (defclass B (is-a USER) (slot x)) CLIPS> (describe-class B) ================================================================================ ******************************************************************************** Abstract: direct instances of this class cannot be created. Direct Superclasses: USER Inheritance Precedence: B USER OBJECT Direct Subclasses: -------------------------------------------------------------------------------- SLOTS : FLD DEF PRP ACC STO MCH SRC VIS CRT OVRD-MSG SOURCE(S) x : SGL STC INH RW LCL RCT EXC PRV NIL put-x B Constraint information for slots: SLOTS : SYM STR INN INA EXA FTA INT FLT x : + + + + + + + + RNG:[-oo..+oo] -------------------------------------------------------------------------------- Recognized message-handlers: init primary in class USER delete primary in class USER create primary in class USER print primary in class USER direct-modify primary in class USER message-modify primary in class USER direct-duplicate primary in class USER message-duplicate primary in class USER ******************************************************************************** ================================================================================ CLIPS> (set-class-defaults-mode convenience) conservation CLIPS> (get-class-defaults-mode) convenience CLIPS> (dribble-off)