[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to create a closure from C
From: |
Andreas Rottmann |
Subject: |
How to create a closure from C |
Date: |
25 Mar 2002 23:00:36 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 |
Hi!
<self-plug>
I'm right now hacking up Guile/GOOPS bindings for my Yehia Project
(http://ucxx.sf.net), which will provide an easy way for exposing a
C++ API to Guile/GOOPS (yes, with full C++ OO support 8-)).
</self-plug>
The Guile <-> C Interface lacks documentation and the GOOPS <-> C does
so even more, however the source is quite readable.
Anyway, I'd find it convenient if I could create a closure from C, so
I could have a C function invoked in its environment and access its
variables from within the C function. I guess it works somehow by
calling scm_closure(), but I can't figure out its calling semantics
(especially how its env argument should look like).
Thanks for any info,
Andy
--
Andreas Rottmann | address@hidden | address@hidden |
address@hidden
http://www.8ung.at/rotty | GnuPG Key: http://www.8ung.at/rotty/gpg.asc
Fingerprint | DFB4 4EB4 78A4 5EEE 6219 F228 F92F CFC5 01FD 5B62
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- How to create a closure from C,
Andreas Rottmann <=