This is the mail archive of the guile@sources.redhat.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: anonymous functions?


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]