 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
John Harrison Guest
|
Posted: Sat Jun 26, 2004 5:24 pm Post subject: schwartz counters? |
|
|
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
|
Posted: Sun Jun 27, 2004 12:09 pm Post subject: Re: schwartz counters? |
|
|
"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 |
|
 |
|
|
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
|
|