CLOS CLOS

CLOS - Definition and Overview

The Common Lisp Object System, a powerful system for object-oriented programming which forms part of Common Lisp.

CLOS differs from most other object-oriented programming environments in the following ways:

  • It offers multiple dispatch, or "multimethods".
  • Therefore, methods are not considered to live within classes; they are conceptually grouped into generic functions instead.
  • CLOS doesn't provide encapsulation; that is considered to be the job of a different part of Common Lisp, the package system.
  • Inheritance can cause methods to be combined together in arbitrarily complicated ways at the discretion of the programmer, and not merely overridden by one another.
  • CLOS is dynamic, meaning that not only the contents, but also the structure of its objects can be modified at runtime. CLOS supports changing class definitions on-the-fly (even when instances of the class in question already exist) as well as changing the class membership of a given instance through the change-class operator.

CLOS has multiple inheritance and, unofficially, a meta-object protocol.

Example Usage of CLOS

kkailin: Purchased 2006 Domaine G. Roumier / Christophe Roumier Morey St. Denis 1er Cru CLOS de La Bussiere - #wine http://cellartracker.com/w?478956
njbeliebers: Hey @kiddnation i'm so happy ! i may not bein watchin him up CLOS (cuz i cant aford it) but i hapy (kiddlive live › http://ustre.am/2FUW)
ABoultbee: CLOSson Chase South CLOS Chardonnay 2007 is the most divine wine. Great wine for dinner tonight. Prince Edward County wine ftw!
Copyright 2009 WordIQ.com - Privacy Policy  :: Terms of Use  :: Contact Us  :: About Us
This article is licensed under the GNU Free Documentation License. It uses material from the this Wikipedia article.