[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNU Guile 1.9.6 released (alpha)

From: Thien-Thi Nguyen
Subject: Re: GNU Guile 1.9.6 released (alpha)
Date: Wed, 16 Dec 2009 13:08:43 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

() Linas Vepstas <address@hidden>
() 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?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]