Classes also inherit slots from their superclasses, but the mechanism is slightly different. Common Lisp also supports multiple inheritance--a class can have multiple direct superclasses, inheriting applicable methods and slot specifiers from all of them. However, it's important to be aware when using multiple inheritance that two unrelated slots that happen to have the same name can be merged into a single slot in the new class.
What is Plikli?
Plikli is an open source content management system that lets you easily create your own user-powered website.
Latest Comments
Log in to comment or register here.