guile-user
[Top][All Lists]
Advanced

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

Re: anonymous functions?


From: Dirk Herrmann
Subject: Re: anonymous functions?
Date: Mon, 11 Sep 2000 15:14:24 +0200 (MEST)

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.

Best regards
Dirk



reply via email to

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