[Ns-developers] Deprecated Attribute?
Mathieu Lacage
mathieu.lacage at sophia.inria.fr
Tue Jul 22 15:54:53 PDT 2008
On Tue, 2008-07-22 at 23:37 +0100, Gustavo Carneiro wrote:
> Yes, but we don't use these deprecated functions ourselves and
> we want
> to make sure that we _don't_ use them, so, why would we use
> this flag ?
>
> That depends on how you define "we". If "we" you mean the core ns-3
> developers, I might agree with you that build should just fail. But
> what about scenarios and models defined by outside developers? Should
> their scripts and models stop building every couple of months due to
> silly method renames?
You could make that switch active only in the scratch directory and, ...
> Personally, I would say the same thing about -Werror active by default
> in released tarballs, but I don't have energy to argue about that as
> well.
... I would be fine with removing -Werror in released tarballs because I
feel that this increases the robustness of the released tarballs in
compiler version variations.
I should point out, though, that this kind of scheme (the deprecated
attributes) where you try to delay user pain is nothing but that: the
addition of a delay and experience shows that users usually ignore all
the big red warnings you print and usually start complaining when the
"deprecated" code starts disappearing, even years after the addition of
the "deprecated" keyword.
regards,
Mathieu
More information about the Ns-developers
mailing list