This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: Unwanted hook names (was Re: interface reductions)
- To: Miroslav Silovic <silovic at zesoi dot fer dot hr>
- Subject: Re: Unwanted hook names (was Re: interface reductions)
- From: Dirk Herrmann <dirk at ida dot ing dot tu-bs dot de>
- Date: Thu, 25 May 2000 17:39:56 +0200 (MEST)
- cc: "Greg J. Badros" <gjb at cs dot washington dot edu>, Guile Mailing List <guile at sourceware dot cygnus dot com>, djurfeldt at nada dot kth dot se
On 25 May 2000, Miroslav Silovic wrote:
> > So what about the following suggestion: We provide a function
> > scm_name_object (SCM obj, SCM name);
> > scm_c_name_object (SCM obj, const char* name);
> > that enters the object with its name into a weak hash table.
>
> Or set them as a property (a systsem that is already in place and
> (hopefully) tested :) ).
That's probably the best way to do it. However, we still could provide
convenience functions for the C level, since the functions that are
provided in objprop.[ch] only accept SCM values:
extern SCM scm_object_property (SCM obj, SCM key);
extern SCM scm_set_object_property_x (SCM obj, SCM key, SCM val);
In any case, we can safely remove the SCM_HOOK_NAME macro and related
code, right?
Best regards
Dirk