Re: Generics in Lisp?



Erik R. wrote:
Hi, I'm new to Lisp, coming from Java 1.5, where I've made heavy use
of generics. Here's my question, can I defmethod a method that
requires its argument to be a subclass of more than one class?

Lisp does not guarantee that such checks are done statically. However, you
are most likely using an object oriented style without good reason. Try
writing in a functional style.

--
Dr Jon D Harrop, Flying Frog Consultancy
The OCaml Journal
http://www.ffconsultancy.com/products/ocaml_journal/?usenet
.