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: Dirk Herrmann <dirk at ida dot ing dot tu-bs dot de>
- Subject: Re: Unwanted hook names (was Re: interface reductions)
- From: cwitty at newtonlabs dot com (Carl R. Witty)
- Date: 26 May 2000 11:19:42 -0700
- Cc: Mikael Djurfeldt <mdj at mdj dot nada dot kth dot se>, "Greg J. Badros" <gjb at cs dot washington dot edu>, Guile Mailing List <guile at sourceware dot cygnus dot com>
- References: <Pine.LNX.4.21.0005261619360.7713-100000@marvin.ida.ing.tu-bs.de>
Dirk Herrmann <dirk@ida.ing.tu-bs.de> writes:
> Newest version of scm_create_hook: When compiling with
> SCM_DEBUG_DEPRECATED=1 it basically only creates a hook with a global
> binding, but otherwise it also provides the name property automatically
> and gc protects the hook. This is in order to provide a smoother
> migration, since for a standard compilation everything behaves as it did
> before.
No! Please don't do that...
My impression of SCM_DEBUG_DEPRECATED was that developers who use
guile in their project could compile their project with
SCM_DEBUG_DEPRECATED=1, and that they would get compile errors if they
used any deprecated features, which would be a hint to update their
code.
1) With your change, SCM_DEBUG_DEPRECATED introduces a subtle garbage
collection bug, rather than a compile error. This is much more
annoying to track down.
2) With your change, guile itself (rather than some other project
which uses guile) must be compiled with SCM_DEBUG_DEPRECATED=1.
Carl Witty
cwitty@newtonlabs.com