guile-user
[Top][All Lists]
Advanced

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

Re: Best way to call a user defined hook (written in guile) from C when


From: Cedric Cellier
Subject: Re: Best way to call a user defined hook (written in guile) from C when the hook need plenty parameters
Date: Tue, 6 Jul 2010 13:22:50 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

-[ Mon, Jul 05, 2010 at 09:18:30PM +0100, Neil Jerram ]----
> But you could get a similar effect - which I think will still work in
> 1.9/2.0 - by creating a module, defining values in it, and then
> evaluating in that module.  (In Guile, module == top level
> environment.)

I was trying to avoid binding values to variables because I believe it
would be too slow. I think, having performed no measurment, that passing
the values as function parameters is much faster than manualy binding
these values to an environment. But maybe I'm wrong, and function
parameters are actualy implemented in a way similar to an alist ?





reply via email to

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