C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

schwartz counters?

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++)
View previous topic :: View next topic  
Author Message
John Harrison
Guest





PostPosted: Sat Jun 26, 2004 5:24 pm    Post subject: schwartz counters? Reply with quote



In a review of C++ Gotchas by Stephen Dewhurst I read the following

"however C++ Gotchas does contain some information that I've not seen
elsewhere - the use of translation-unit-local static "Schwarz counters" to
control the order of non-local static initialization, for example"

Can anyone explain this technique to me or am I going to have to read the
book?

john

PS a google search turned up a few references but nothing that actually
explained the technique.


Back to top
John Carson
Guest





PostPosted: Sun Jun 27, 2004 12:09 pm    Post subject: Re: schwartz counters? Reply with quote



"John Harrison" <john_andronicus (AT) hotmail (DOT) com> wrote

Quote:
In a review of C++ Gotchas by Stephen Dewhurst I read the following

"however C++ Gotchas does contain some information that I've not seen
elsewhere - the use of translation-unit-local static "Schwarz
counters" to control the order of non-local static initialization,
for example"

Can anyone explain this technique to me or am I going to have to read
the book?

john

PS a google search turned up a few references but nothing that
actually explained the technique.


http://www-d0.fnal.gov/KAI/doc/tutorials/static_initialization.html

In addition, Bruce Eckel discusses it and other techniques in volume I of
his Thinking in C++, chapter 10.


--
John Carson
1. To reply to email address, remove donald
2. Don't reply to email address (post here instead)


Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.