This is the mail archive of the guile@sourceware.cygnus.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: Unwanted hook names (was Re: interface reductions)


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

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