K_GLOBAL_STATIC and other macros
Matthias Kretz
kretz at kde.org
Fri Apr 13 22:11:02 BST 2007
On Friday 13 April 2007 21:46, Thiago Macieira wrote:
> Matthias Kretz wrote:
> >was a bugfix. The change implies that now qrand() cannot be used in
> > global dtors anymore. That's what I was saying in my other mail: if it
> > works without crashes in one version you cannot assume it will still
> > work in the next version - which might introduce new global statics
> > that are destructed before your object.
>
> I think it's the other way around: if you introduce crashes where there
> were previously none, you introduced a bug.
... if the API was used correctly. In this case my opinion is that calling a
Qt function from a global object dtor is incorrect usage of the Qt API (and
you're just lucky if it works). If you disagree feel free to report a bug to
the Trolls.
--
________________________________________________________
Matthias Kretz (Germany) <><
http://Vir.homelinux.org/
MatthiasKretz at gmx.net, kretz at kde.org,
Matthias.Kretz at urz.uni-heidelberg.de
More information about the kde-core-devel
mailing list