home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / cplus / 16738 < prev    next >
Encoding:
Text File  |  1992-11-22  |  1007 b   |  27 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!munnari.oz.au!cs.mu.OZ.AU!munta.cs.mu.OZ.AU!fjh
  3. From: fjh@munta.cs.mu.OZ.AU (Fergus James HENDERSON)
  4. Subject: inline functions with static local variables (was: Re: Wisdom on f(...,const class& xxx = default_xxx))
  5. Message-ID: <9232812.10747@mulga.cs.mu.OZ.AU>
  6. Sender: news@cs.mu.OZ.AU
  7. Organization: Computer Science, University of Melbourne, Australia
  8. References: <mg.721758488@tyrolia> <1992Nov16.174152.16576@taumet.com>
  9. Date: Mon, 23 Nov 1992 01:49:11 GMT
  10. Lines: 15
  11.  
  12. steve@taumet.com (Steve Clamage) writes:
  13.  
  14. >(because an inline function can't have static local variables).
  15.  
  16. Why not?
  17. Is there any restriction on this in the ARM? I couldn't see anything
  18. in C++PL 2nd Ed.
  19.  
  20. g++ will quite happily go ahead and inline such functions.
  21.  
  22. -- 
  23. Fergus Henderson             fjh@munta.cs.mu.OZ.AU      
  24. This .signature virus is a self-referential statement that is true - but 
  25. you will only be able to consistently believe it if you copy it to your own
  26. .signature file!
  27.