X-Git-Url: http://git.chise.org/gitweb/?p=elisp%2Flemi.git;a=blobdiff_plain;f=emacs-lisp%2Fluna.el;h=0199aedbec6942ec4fc152bd11f9be4a7c960513;hp=b307ad9ab9622e0ac7465540fac1b26d6e71eb22;hb=929e7c89dc84c0ea3cda08423c5a7972194add6d;hpb=c651f107107f4092c749a3a921124cfd302e061a diff --git a/emacs-lisp/luna.el b/emacs-lisp/luna.el index b307ad9..0199aed 100644 --- a/emacs-lisp/luna.el +++ b/emacs-lisp/luna.el @@ -1,6 +1,6 @@ ;;; luna.el --- tiny OOP system kernel -;; Copyright (C) 1999,2000 Free Software Foundation, Inc. +;; Copyright (C) 1999,2000,2002 Free Software Foundation, Inc. ;; Author: MORIOKA Tomohiko ;; Keywords: OOP @@ -97,15 +97,7 @@ The optional 2nd arg SLOTS is a list of slots CLASS will have." (defun luna-class-find-member (class member-name) (or (stringp member-name) (setq member-name (symbol-name member-name))) - (or (intern-soft member-name (luna-class-obarray class)) - (let ((parents (luna-class-parents class)) - ret) - (while (and parents - (null - (setq ret (luna-class-find-member - (luna-find-class (pop parents)) - member-name))))) - ret))) + (intern-soft member-name (luna-class-obarray class))) ;; Return a member (slot or method) of CLASS that has name