On Friday 03 February 2006 17:23, Leo Savernik wrote:
> Am Freitag, 3. Februar 2006 09:35 schrieb Thiago
Macieira:
> > Do it like this:
> > static const QStringList suffixes =
getExtraURLSuffixes();
>
> Half OT:
> I remember that static initialisers were not allowed
formerly (explanations
> ran always like "leading to crashes when
dlopening" or the similary). Why
> isn't it an issue any more?
It's still an issue for class-static or file-static members,
since the order of initialization for those is undefined.
But here it's about method-static, which is fine since we
know it will only
be initialized when calling the method for the first time.
--
David Faure, faure kde.org, sponsored by Trolltech to work on
KDE,
Konqueror (http://www.konqueror.org
), and KOffice (http://www.koffice.org).
|