Le 09/11/2010 05:06, Clemens Zeidler a écrit :
Am 09.11.2010, 15:14 Uhr, schrieb <ingo_weinhold@xxxxxx>:Log: * Got rid of global variables in the locale kit (be_locale[_roster], gMutableLocaleRoster, gRosterData). Introduced static getters instead. Probably breaks all optional packages using the locale kit.* Unbroke the cycles in the sRosterData (formerly gRosterData) initialization: - The fDefaultLocale member is now initialized with some actual default BLanguage() and BFormattingConventions() (both "en_US"). It was formerlyinitializing itself with itself.- The fDefaultTimeZone is now a pointer and lazily initialized. This breaksa longer cycle via ICU, tzset() and LibbeLocaleBackend.What do you mean with cycle? and how weak symbols helps here? / whats the problem with global variables?thanks, Clemens
var A is initialized as A = B; var B is initialized as B = A; In the end all values are undefined.