Conference paper Open Access

Binary Methods Programming: the CLOS Perspective

Verna, Didier

Implementing binary methods in traditional object-oriented languages is difficult: numerous problems arise regarding the relationship between types and classes in the context of inheritance, or the need for privileged access to the internal representation of objects. Most of these problems occur in the context of statically typed languages that lack multi-methods (polymorphism on multiple arguments). The purpose of this paper is twofold: first, we show why some of these problems are either non-issues, or easily solved in Common-Lisp. Then, we demonstrate how the Common-Lisp Object System (CLOS) allows us not only to implement binary methods in a straightforward way, but also to support the concept directly, and even enforce it at different levels (usage and implementation).

Files (173.0 kB)
Name Size
verna.08.els.pdf
md5:00780dbe12bcb2735087b6382011a9fd
173.0 kB Download
31
12
views
downloads
All versions This version
Views 3131
Downloads 1212
Data volume 2.1 MB2.1 MB
Unique views 3131
Unique downloads 1111

Share

Cite as