National Institute of Advanced Industrial Science and Technology (AIST) This page is a page of the former research institute. We stopped updating on March 31.2001.
E-mail to webmaster (Japanese) E-mail to webmaster (English)

オブジェクト指向型言語: EusLisp

なぜオブジェクト指向か? なぜ Lisp か?
EusLispのオブジェクト指向プログラミング
  1. クラスの定義
    (defclass class-name :super superclass
       :slots (var (var type forward))
  2. メソッドの定義
    (defmethod class-name
       (:method1 (arg ...) . body)
       (:method2 (arg ...) . body))
  3. オブジェクトの作成
    (instance class . message)
  4. メッセージの送信
    (send object :method args ...)

例:
(car x)= (send x :car) = (cons-car x) = (slot x cons 'car) = (x . car)


EusLispのLisp仕様