From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Linas Vepstas Newsgroups: gmane.lisp.guile.devel,gmane.lisp.guile.user Subject: Re: GNU Guile 1.9.6 released (alpha) Date: Wed, 16 Dec 2009 15:51:48 -0600 Message-ID: <3ae3aa420912161351k52888e4fy2e032c39894ab673@mail.gmail.com> References: <87pr6fzur1.fsf@gnu.org> <3ae3aa420912151619v165e032agccd15552a2dbcbd5@mail.gmail.com> <871viusy10.fsf@gnu.org> Reply-To: linasvepstas@gmail.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1261000327 11416 80.91.229.12 (16 Dec 2009 21:52:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Dec 2009 21:52:07 +0000 (UTC) Cc: guile-user@gnu.org, guile-devel@gnu.org To: =?UTF-8?Q?Ludovic_Court=C3=A8s?= Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Dec 16 22:52:00 2009 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NL1mp-0002Cz-Lv for guile-devel@m.gmane.org; Wed, 16 Dec 2009 22:52:00 +0100 Original-Received: from localhost ([127.0.0.1]:58128 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NL1mp-0001lI-GW for guile-devel@m.gmane.org; Wed, 16 Dec 2009 16:51:59 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NL1ml-0001kp-Tx for guile-devel@gnu.org; Wed, 16 Dec 2009 16:51:55 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NL1mg-0001hw-P1 for guile-devel@gnu.org; Wed, 16 Dec 2009 16:51:55 -0500 Original-Received: from [199.232.76.173] (port=36985 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NL1mg-0001hp-Li; Wed, 16 Dec 2009 16:51:50 -0500 Original-Received: from mail-yw0-f202.google.com ([209.85.211.202]:55401) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NL1mf-0005XW-AC; Wed, 16 Dec 2009 16:51:49 -0500 Original-Received: by ywh40 with SMTP id 40so1551268ywh.26 for ; Wed, 16 Dec 2009 13:51:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=HkpiATwn7LfzHka02zqjSkDnflzA0QJt9GktqQuGRvA=; b=OzP/lUiruHWGzFRDFdnMAh33MCYCJT52NV7kG72Sp08b52UJ4whng9Tot5I2k7FmmQ F/+I4MjI6tTr86+hK7juxAmfHlLTU1eDlWv0UzZruwUXOf/2ZmaaNopiX+Fph31hxIB/ GDB6KnHxJc3wIIVwG9KoAqL9Sgh4rRfoboRuw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:content-transfer-encoding; b=xJWYf6bt0L2CPSJKNO5hos63762wBRMtHqOrhCUmMtjCzXeOJX/w2Sj2XMJqFWfyq2 3U0+s1Vlaf+vP8WRSBYQMF2U7cUqwFJQwEtwjRo9boKco/SlXh+51i/ReV44J7IbSwXZ j0jJaR6yrLkXSe+gUs2Vip3TrR6YUaiCqi9dU= Original-Received: by 10.101.130.8 with SMTP id h8mr2397755ann.168.1261000308201; Wed, 16 Dec 2009 13:51:48 -0800 (PST) In-Reply-To: <871viusy10.fsf@gnu.org> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:9769 gmane.lisp.guile.user:7541 Archived-At: 2009/12/16 Ludovic Court=C3=A8s : > Hi Linas, > > Linas Vepstas writes: > >> I have a new feature request -- it would be useful, in a variety of situ= ations, >> to be able to provide an opaque (void *) pointer when calling make_gsubr= , >> and then getting that pointer back again whenever the primitive is calle= d. > > One solution is to use applicable smobs (=E2=80=98scm_set_smob_apply=C2= =A0()=E2=80=99, 1.8+) > or applicable structs (1.9). =C2=A0How well does it work for you? Someone (you?) suggested this earlier, on IRC. I explored but I could not figure out how to use it -- I implemented something else. TTN's suggestion of make-object-property appears to offer a simple solution -- based on what I just now read in the guile manual. Its not obviously simpler than doing what I implemented .. maybe it is, the devil is in the details (I have working code now, and have no desire to re-do it)= . I just thought I'd bring this up since its been a recurring need for me, and I figure others would have a similar need. --linas