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: Re: How to implement 'class methods' Date: 01 Apr 2002 13:44:20 +0200 Sender: guile-devel-admin@gnu.org Message-ID: <87r8lzk5ij.fsf@alice.rhinosaur.lan> References: <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 1017663314 2309 127.0.0.1 (1 Apr 2002 12:15:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 1 Apr 2002 12:15:14 +0000 (UTC) Cc: guile-user@gnu.org Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16s0iO-0000b1-00 for ; Mon, 01 Apr 2002 14:15:14 +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 16s0fO-0007l8-00; Mon, 01 Apr 2002 07:12:06 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 16s0EG-0003jS-00 for ; Mon, 01 Apr 2002 06:44:05 -0500 Original-Received: (qmail 24556 invoked by uid 0); 1 Apr 2002 11:43:58 -0000 Original-Received: from unknown (HELO alice.rhinosaur.lan) (62.47.189.245) by mail.gmx.net (mp002-rz3) with SMTP; 1 Apr 2002 11:43:58 -0000 Original-Received: from andy by alice.rhinosaur.lan with local (Exim 3.35 #1 (Debian)) id 16s0EW-0000Wk-00; Mon, 01 Apr 2002 13:44:20 +0200 Original-To: guile-devel@gnu.org In-Reply-To: <87vgbbk7fx.fsf@alice.rhinosaur.lan> Original-Lines: 26 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:253 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:253 Andreas Rottmann writes: > 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. > Oops, this one should rather go to -user. CC'd. 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