From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.lisp.guile.user Subject: Re: GNU Guile 1.9.6 released (alpha) Date: Wed, 16 Dec 2009 13:08:43 +0100 Message-ID: <87eimv9l4k.fsf@ambire.localdomain> References: <87pr6fzur1.fsf@gnu.org> <3ae3aa420912151619v165e032agccd15552a2dbcbd5@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1260965850 11400 80.91.229.12 (16 Dec 2009 12:17:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Dec 2009 12:17:30 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Dec 16 13:17:23 2009 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NKsoj-00084m-IJ for guile-user@m.gmane.org; Wed, 16 Dec 2009 13:17:22 +0100 Original-Received: from localhost ([127.0.0.1]:50628 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NKsoj-0001jP-AC for guile-user@m.gmane.org; Wed, 16 Dec 2009 07:17:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NKsjG-0008Ma-J2 for guile-user@gnu.org; Wed, 16 Dec 2009 07:11:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NKsjF-0008M0-FS for guile-user@gnu.org; Wed, 16 Dec 2009 07:11:41 -0500 Original-Received: from [199.232.76.173] (port=40487 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NKsjF-0008Lu-9V for guile-user@gnu.org; Wed, 16 Dec 2009 07:11:41 -0500 Original-Received: from smtp-out01.alice.it ([85.33.2.12]:3431) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NKsjF-0000ir-6a for guile-user@gnu.org; Wed, 16 Dec 2009 07:11:41 -0500 Original-Received: from fbcmmo06.fbc.local ([192.168.184.137]) by smtp-out01.alice.it with Microsoft SMTPSVC(6.0.3790.3959); Wed, 16 Dec 2009 13:11:38 +0100 Original-Received: from FBCMCL01B04.fbc.local ([192.168.69.85]) by fbcmmo06.fbc.local with Microsoft SMTPSVC(6.0.3790.3959); Wed, 16 Dec 2009 13:10:52 +0100 Original-Received: from ambire.localdomain ([95.237.67.191]) by FBCMCL01B04.fbc.local with Microsoft SMTPSVC(6.0.3790.3959); Wed, 16 Dec 2009 13:10:52 +0100 Original-Received: from ttn by ambire.localdomain with local (Exim 4.63) (envelope-from ) id 1NKsgN-0003yo-EC for guile-user@gnu.org; Wed, 16 Dec 2009 13:08:43 +0100 In-Reply-To: <3ae3aa420912151619v165e032agccd15552a2dbcbd5@mail.gmail.com> (Linas Vepstas's message of "Tue, 15 Dec 2009 18:19:21 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-OriginalArrivalTime: 16 Dec 2009 12:10:52.0338 (UTC) FILETIME=[CFD9C120:01CA7E48] X-detected-operating-system: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ 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 Xref: news.gmane.org gmane.lisp.guile.user:7537 Archived-At: () Linas Vepstas () Tue, 15 Dec 2009 18:19:21 -0600 I have a new feature request -- it would be useful, in a variety of situations, to be able to provide an opaque (void *) pointer when calling make_gsubr, and then getting that pointer back again whenever the primitive is called. Presuming i do not misunuderstand your situation, i find object properties work well. Instead, of `void *procedure_private_data', you have: (define private-data (make-object-property)) (define proc ...) ;; or C analog (set! (private-data proc) foo) Am i missing something? thi