() Linas Vepstas <linasveps...@gmail.com>
() 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


Reply via email to