This is the mail archive of the
guile@sources.redhat.com
mailing list for the Guile project.
Re: anonymous functions?
- To: Bill Schottstaedt <bil at ccrma dot stanford dot edu>
- Subject: Re: anonymous functions?
- From: Dirk Herrmann <dirk at ida dot ing dot tu-bs dot de>
- Date: Mon, 11 Sep 2000 15:14:24 +0200 (MEST)
- cc: guile-user at gnu dot org
- List-Id: <guile-user.gnu.org>
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
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user