guile-user
[Top][All Lists]
Advanced

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

Re: Guile C interface & GOOPS question


From: Christopher Cramer
Subject: Re: Guile C interface & GOOPS question
Date: Wed, 27 Mar 2002 19:02:03 -0600
User-agent: Mutt/1.2.5i

On Wed, Mar 27, 2002 at 08:50:52PM +0100, Andreas Rottmann wrote:
> I'd like to 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). 

I tried looking at scm_closure, but I really don't think you'd have much
luck trying to use it with C code. Your best bet would be to use smobs
(look at scm_set_smob_apply in particular).

-- 
Christopher Cramer <address@hidden> <http://www.pyro.net/~crayc/>
Quoi que vous fassiez, écrasez l'infâme, et aimez qui vous aime.
        -- Voltaire



reply via email to

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