guile-devel
[Top][All Lists]
Advanced

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

Re: anonymous functions?


From: Mikael Djurfeldt
Subject: Re: anonymous functions?
Date: 11 Sep 2000 16:29:21 +0200
User-agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7

[Moving the thread, which, correctly, started in guile-user to guile-devel.]

Dirk Herrmann <address@hidden> writes:

> On Mon, 11 Sep 2000, Bill Schottstaedt wrote:
> 
> > I'm using scm_make_procedure_with_setter, but would like to pass it
> > "anonymous functions" -- I'm currently using the function name "",
> > which appears to work, but I worry that this method has not received
> > a proper blessing:
> > 
> > gh_define(function_name,
> >   scm_make_procedure_with_setter(
> >     gh_new_procedure("",get_function,1,0,0),
> >     gh_new_procedure("",set_function,2,0,0)));
> 
> Yes, that is definitely something that is missing in guile.  In fact, I
> think that we should separate some issues here:  object creation, binding,
> and potentially gc protection.  These are somewhat mixed in the current
> API, which is something that needs improvement, IMO.

I agree.  We should have functions performing each of these orthogonal
things.

But at the same time, we should have "higher-level" functions, like
gh_new_procedure, so that simple Guile usage can be done in a simple
way.


reply via email to

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