guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Handling deprecated features


From: Marius Vollmer
Subject: Re: Handling deprecated features
Date: 08 May 2001 13:36:30 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.102

Dirk Herrmann <address@hidden> writes:

> On 29 Apr 2001, Marius Vollmer wrote:
> 
> > Therefore, what do you think of providing this interface to the user:
> [...]
> >    #ifdef SCM_ENABLE_DEPRECATED
> >    ...
> >    #endif
> 
> Do you think that SCM_ENABLE_DEPRECATED should replace
> SCM_DEBUG_DEPRECATED, or what is the idea behind the SCM_ENABLE_DEPRECATED
> macro?  Maybe some warning message system like for the scheme level?

Oops, I think I was confused about names.  I wanted to use the
existing system with SCM_DEBUG_DEPRECATED, but I had to think about
the polarity of SCM_DEBUG_DEPRECATED every time I used it.  Like, "I
want to remove this code when deprecated features are not enabled,
that is, when the user wants to debug his code for use of this
feature, that is, when SCM_DEBUG_DEPRECATED is true, that is I have to
check for SCM_DEBUG_DEPRECATED == 0 in the `#if' to include the code
in the normal case."  While SCM_ENABLE_DEPRECATED would have fitted
better with the way my brain is wired.  No double negations and stuff.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]