From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Greg Troxel Newsgroups: gmane.lisp.guile.user Subject: equivalent of "this" in goops? Date: 16 Feb 2005 16:35:50 -0500 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1108589979 21458 80.91.229.2 (16 Feb 2005 21:39:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 16 Feb 2005 21:39:39 +0000 (UTC) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Feb 16 22:39:39 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D1Ws8-0001W3-U2 for guile-user@m.gmane.org; Wed, 16 Feb 2005 22:38:13 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D1X89-0000as-Qi for guile-user@m.gmane.org; Wed, 16 Feb 2005 16:54:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D1X75-0000Na-AS for guile-user@gnu.org; Wed, 16 Feb 2005 16:53:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D1X6u-0000IY-3Z for guile-user@gnu.org; Wed, 16 Feb 2005 16:53:28 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D1X6t-0000F9-Up for guile-user@gnu.org; Wed, 16 Feb 2005 16:53:27 -0500 Original-Received: from [192.1.100.210] (helo=fnord.ir.bbn.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1D1Wpt-0004nO-Sj for guile-user@gnu.org; Wed, 16 Feb 2005 16:35:55 -0500 Original-Received: by fnord.ir.bbn.com (Postfix, from userid 10853) id CC03D1FF1; Wed, 16 Feb 2005 16:35:50 -0500 (EST) Original-To: guile-user@gnu.org Original-Lines: 20 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org X-MailScanner-To: guile-user@m.gmane.org Xref: main.gmane.org gmane.lisp.guile.user:4247 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:4247 I'm using guile 1.6.x,and doing network mapping. In a class representing a node, I want to have a slot with an init-thunk, and I would like to call a procedure with the class object as an argument. The slot holds a class object which is basically a hash table of links in a network, and it needs the node object so it can hash on 'other end node id'. So, I'd like to pass 'this' in c++ terms, and I don't see how to do that from reading goops.info. I realize there are issues with the class not being fully initialized, and in my case that's safe since I'm just storing the object in a variable and not using it until a link is added, which doesn't happen during object initialization. Thus I realize that what I want to do is vaguely unschemely. My fallback is to initialize the linkset on first use, or after object createion, or something like that. -- Greg Troxel _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user