PDA

View Full Version : #2-7: Inheritance


Skavookie
12-25-2003, 08:24 PM
Lisp's "generic functions" do something very smilar to what you seem to be advocating. The idea behind generic functions is that the function has multiple definitions and the definition that is used depends on the classes of the arguments. This isn't quite the same thing, but it's pretty close.

For more information on this topic, take a look at Generic Functions (http://www.lispworks.com/reference/HyperSpec/Body/07_fa.htm) .