Re: Accompany index of deprecated symbols with GTK+ version?



However, I learned that for quite a number of methods it is
a good idea to drop the deprecated ones and instead
use the replacements (less buggy, better UI, better source code
readability, less source code, better performance).
Usually it should indeed make sense, because otherwise there
would have been no need to implement a replacement ;-)

Why not use the "deprecated" keyword in the headers? Then at least gcc
will warn you if you use deprecated functions and typedefs. This could
be made as a macro which gets expanded only if you're using gcc, and
if you have something like GTK_WARN_DEPRECATED defined first.



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