On Fri, Mar 21, 2008 at 06:20:45PM -0700, Tracy R Reed wrote:

In addition, most of what the Smalltalk guys rave about is not the fact that it is object-oriented. What they generally rave about is the fact that the system is introspective without limit.

And this is also one of the things the Lisp guys rave about, right?

General OO introspection isn't part of standard Common Lisp, but is widley
standardized (AMOP).

But, the non CLOS stuff also has fairly good introspection, even though it
isn't all that standardized.  The Slime emacs lisp interaction mode
contains code for most lisp systems that nicely allows the editor to
present IDE-style descriptions of function as you are typing them in.

CLOS does do some interesting things with OO that aren't common.  It
supports multiple-inheritance (not just interface), and methods can be
multi-dispatched.  In fact, the method dispatch can be based off of things
other than class heirarchy, basically anything that can be compared
numerically or via pointer-comparison.  I've used that to dispatch calls
for a packet decoder just based on the packet id.

David

--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg

Reply via email to