From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andreas Rottmann Newsgroups: gmane.lisp.guile.devel Subject: How to implement 'class methods' Date: 01 Apr 2002 13:02:42 +0200 Sender: guile-devel-admin@gnu.org Message-ID: <87vgbbk7fx.fsf@alice.rhinosaur.lan> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1017660908 1114 127.0.0.1 (1 Apr 2002 11:35:08 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 1 Apr 2002 11:35:08 +0000 (UTC) Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16s05c-0000Hr-00 for ; Mon, 01 Apr 2002 13:35:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16rzag-000735-00; Mon, 01 Apr 2002 06:03:10 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 16rzZx-0003Y2-00 for ; Mon, 01 Apr 2002 06:02:25 -0500 Original-Received: (qmail 13061 invoked by uid 0); 1 Apr 2002 11:02:19 -0000 Original-Received: from unknown (HELO alice.rhinosaur.lan) (62.47.189.245) by mail.gmx.net (mp015-rz3) with SMTP; 1 Apr 2002 11:02:19 -0000 Original-Received: from andy by alice.rhinosaur.lan with local (Exim 3.35 #1 (Debian)) id 16rzaE-0000Uu-00 for ; Mon, 01 Apr 2002 13:02:42 +0200 Original-To: guile-devel@gnu.org Original-Lines: 22 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Errors-To: guile-devel-admin@gnu.org X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.devel:252 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:252 Hi! I wonder how one could implement 'class methods' (like C++ static methods) in GOOPS. I'd like to call them like this: (static-method "argument") where would be the class the method belongs to. I could use (define-method (a-method ( c) args) (do-something)) but this would get invoked for all calls that pass a class as first argument and I'd have to test if the 'right' class is passed and then use (next-method) if not. Regards, Andy -- Andreas Rottmann | Dru@ICQ | 118634484@ICQ | a.rottmann@gmx.at http://www.8ung.at/rotty | GnuPG Key: http://www.8ung.at/rotty/gpg.asc Fingerprint | DFB4 4EB4 78A4 5EEE 6219 F228 F92F CFC5 01FD 5B62 _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel