static initialization

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • shishir

    static initialization

    What is static initialization problem ? Does it make sense only for
    c++ and not for C ? why ? what are the different ways in which this
    problem can be solved ? Is munching is one such solution.
  • Qin Chen

    #2
    Re: static initialization

    I suggest you read <Think in C++>, i'm myself working on it.
    The chapter 10 name control can meet your question, i think...your can get
    the book on www.BruceEckel.com.
    Hope it help...
    "shishir" <shishir_k@indi atimes.com>
    ??????:a05077a4 .0402252214.50a fa06f@posting.g oogle.com...[color=blue]
    > What is static initialization problem ? Does it make sense only for
    > c++ and not for C ? why ? what are the different ways in which this
    > problem can be solved ? Is munching is one such solution.[/color]


    Comment

    • Rolf Magnus

      #3
      Re: static initialization

      shishir wrote:
      [color=blue]
      > What is static initialization problem ?[/color]

      I suggest you read that up in the FAQ to this newsgroup. See
      http://www.parashift.com/c++-faq-lite/ especially question 10.11.
      [color=blue]
      > Does it make sense only for c++ and not for C ?[/color]

      I think so, yes.
      [color=blue]
      > why ?[/color]

      Because C only has POD types.
      [color=blue]
      > what are the different ways in which this problem can be solved ?[/color]

      Read the rest of chapter 10 of the FAQ.
      [color=blue]
      > Is munching is one such solution.[/color]

      I don't think that bad eating manners will help you with that ;-)

      Comment

      Working...