avoid deprecated methods
Jaime Torres
kde-optimize@mail.kde.org
Wed, 5 Feb 2003 13:00:08 +0100
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C2CD0E.211DEA00
Content-Type: text/plain;
charset="iso-8859-1"
> On Tuesday 04 of February 2003 18:00, Alexander Neundorf wrote:
> > On Tuesday 04 February 2003 11:24, Stefan Heimers wrote:
> > > This is a good point. I would recommend moving deprecated
> methods out of
> > > qt/kdelibs into a separate libraby.
> >
> > That's not possible, these methods are usually member
> methods which belong
> > to their class.
> >
> > But the #ifdef would be a good thing.
>
> It should be possible, you can simply omit implementation of
> some methods,
> and as long as they're not referenced, it will be fine. Even
> the #ifdef is
> there, it's called KDE_NO_COMPAT (and QT_NO_COMPAT), so you
> can just add
> "-DKDE_NO_COMPAT -DQT_NO_COMPAT" to your compile flags and try.
>
> On the other hand, I don't think there should be any
> official support for it,
> as that would be likely to break anything but a carefully
> handled install
> from sources, where the person wouldn't care about things
> like no backwards
> compatibility, possibly broken binary compatibility, and so on.
The main advantage here is not to use these methods in future releases.
In that way you can compile it with those flags and see if some of the
deprecated methods are used, that I am pretty sure (not checked yet)
that they are used in the 3.1.
> 300KiB of shared memory isn't that much, given the libs take
> roughly 15MiB in
> total. Moreover I think it would be less, most NO_COMPAT
> methods are simple
> wrappers, so they would be less than 1KiB each.
I was not talking about NO_COMPAT methods but methods that are documented
in their documentation header as @deprecated.
> --
> Lubos Lunak
> KDE developer
> ---------------------------------------------------------------------
> SuSE CR, s.r.o. e-mail: l.lunak@suse.cz , l.lunak@kde.org
> Drahobejlova 27 tel: +420 2 9654 2373
> 190 00 Praha 9 fax: +420 2 9654 2374
> Czech Republic http://www.suse.cz/
>
> _______________________________________________
> Kde-optimize mailing list
> Kde-optimize@mail.kde.org
> http://mail.kde.org/mailman/listinfo/kde-optimize
>
------_=_NextPart_001_01C2CD0E.211DEA00
Content-Type: text/html;
charset="iso-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: avoid deprecated methods</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>> On Tuesday 04 of February 2003 18:00, Alexander Neundorf wrote:</FONT>
<BR><FONT SIZE=2>> > On Tuesday 04 February 2003 11:24, Stefan Heimers wrote:</FONT>
<BR><FONT SIZE=2>> > > This is a good point. I would recommend moving deprecated </FONT>
<BR><FONT SIZE=2>> methods out of</FONT>
<BR><FONT SIZE=2>> > > qt/kdelibs into a separate libraby.</FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> > That's not possible, these methods are usually member </FONT>
<BR><FONT SIZE=2>> methods which belong</FONT>
<BR><FONT SIZE=2>> > to their class.</FONT>
<BR><FONT SIZE=2>> ></FONT>
<BR><FONT SIZE=2>> > But the #ifdef would be a good thing.</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> It should be possible, you can simply omit implementation of </FONT>
<BR><FONT SIZE=2>> some methods, </FONT>
<BR><FONT SIZE=2>> and as long as they're not referenced, it will be fine. Even </FONT>
<BR><FONT SIZE=2>> the #ifdef is </FONT>
<BR><FONT SIZE=2>> there, it's called KDE_NO_COMPAT (and QT_NO_COMPAT), so you </FONT>
<BR><FONT SIZE=2>> can just add </FONT>
<BR><FONT SIZE=2>> "-DKDE_NO_COMPAT -DQT_NO_COMPAT" to your compile flags and try.</FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> On the other hand, I don't think there should be any </FONT>
<BR><FONT SIZE=2>> official support for it, </FONT>
<BR><FONT SIZE=2>> as that would be likely to break anything but a carefully </FONT>
<BR><FONT SIZE=2>> handled install </FONT>
<BR><FONT SIZE=2>> from sources, where the person wouldn't care about things </FONT>
<BR><FONT SIZE=2>> like no backwards </FONT>
<BR><FONT SIZE=2>> compatibility, possibly broken binary compatibility, and so on.</FONT>
</P>
<P><FONT SIZE=2>The main advantage here is not to use these methods in future releases.</FONT>
<BR><FONT SIZE=2>In that way you can compile it with those flags and see if some of the</FONT>
<BR><FONT SIZE=2>deprecated methods are used, that I am pretty sure (not checked yet) </FONT>
<BR><FONT SIZE=2>that they are used in the 3.1.</FONT>
<BR><FONT SIZE=2> </FONT>
<BR><FONT SIZE=2>> 300KiB of shared memory isn't that much, given the libs take </FONT>
<BR><FONT SIZE=2>> roughly 15MiB in </FONT>
<BR><FONT SIZE=2>> total. Moreover I think it would be less, most NO_COMPAT </FONT>
<BR><FONT SIZE=2>> methods are simple </FONT>
<BR><FONT SIZE=2>> wrappers, so they would be less than 1KiB each.</FONT>
</P>
<P><FONT SIZE=2>I was not talking about NO_COMPAT methods but methods that are documented</FONT>
<BR><FONT SIZE=2>in their documentation header as @deprecated.</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=2>> -- </FONT>
<BR><FONT SIZE=2>> Lubos Lunak</FONT>
<BR><FONT SIZE=2>> KDE developer</FONT>
<BR><FONT SIZE=2>> ---------------------------------------------------------------------</FONT>
<BR><FONT SIZE=2>> SuSE CR, s.r.o. e-mail: l.lunak@suse.cz , l.lunak@kde.org</FONT>
<BR><FONT SIZE=2>> Drahobejlova 27 tel: +420 2 9654 2373</FONT>
<BR><FONT SIZE=2>> 190 00 Praha 9 fax: +420 2 9654 2374</FONT>
<BR><FONT SIZE=2>> Czech Republic <A HREF="http://www.suse.cz/" TARGET="_blank">http://www.suse.cz/</A></FONT>
<BR><FONT SIZE=2>> </FONT>
<BR><FONT SIZE=2>> _______________________________________________</FONT>
<BR><FONT SIZE=2>> Kde-optimize mailing list</FONT>
<BR><FONT SIZE=2>> Kde-optimize@mail.kde.org</FONT>
<BR><FONT SIZE=2>> <A HREF="http://mail.kde.org/mailman/listinfo/kde-optimize" TARGET="_blank">http://mail.kde.org/mailman/listinfo/kde-optimize</A></FONT>
<BR><FONT SIZE=2>> </FONT>
</P>
</BODY>
</HTML>
------_=_NextPart_001_01C2CD0E.211DEA00--