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