SLIDE 16 CL OX Didier Verna Introduction
Context Motivation Alternatives
Closette
ELisp vs. Lisp The CL package Scoping λ-lists
Type/Class
Types Generic Functions
Project status
Available Features Testing Performance
Conclusion Thanks !
Types
CL OX objects are vectors
Built-in types
◮ C level: integers, characters and lrecord types ◮ User level: corresponding type predicate Lisp function ◮ 30 LoC to filter them out
type-of doesn’t work on CL OX objects
◮ Better not hide the true nature of Lisp objects ◮ Not required to make CL
OX work
◮ Will work eventually (C level)
typep is provided by CL
◮ Need predicate functions:
(typep obj ’my-type) ⇐ ⇒ (my-type-p obj) ◮ ensure-class creates them
◮ Should work on class objects, not only names
◮ CL OX-specific defavice around it
22/33