home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / linux / 22119 < prev    next >
Encoding:
Text File  |  1992-12-30  |  967 b   |  22 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!mcsun!news.funet.fi!hydra!klaava!wirzeniu
  3. From: wirzeniu@klaava.Helsinki.FI (Lars Wirzenius)
  4. Subject: Re: IMPORTANT [BUG in 0.99] Re: [ANNOUNCE]: linux version 0.99
  5. Message-ID: <1992Dec30.013913.1919@klaava.Helsinki.FI>
  6. Organization: University of Helsinki
  7. References: <1hpsasINN6e@meaddata.meaddata.com> <20502@ksr.com> <mcampbel.725666039@eola.cs.ucf.edu>
  8. Date: Wed, 30 Dec 1992 01:39:13 GMT
  9. Lines: 11
  10.  
  11. mcampbel@cs.ucf.edu (Mike Campbell ) writes:
  12. >If you NEEDED to initialize it, you would lose the value of the variable
  13. >every time the function was called, nullifying the advantage statics have
  14. >in functions, (namely holding a value out of visibility).
  15.  
  16. No, statics are initialized only once, at program startup, even if
  17. they are inside functions, not every time the function is entered.
  18.  
  19. --
  20. Lars.Wirzenius@helsinki.fi  (finger wirzeniu@klaava.helsinki.fi)
  21.    MS-DOS, you can't live with it, you can live without it.
  22.