Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #14678
| From | Luca Cerone <luca.cerone@gmail.com> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: static constants are not local to the file they're defined. |
| Date | 2012-03-02 00:56 -0800 |
| Organization | http://groups.google.com |
| Message-ID | <11063471.45.1330678603134.JavaMail.geo-discussion-forums@vbne13> (permalink) |
| References | <16464242.82.1330590524680.JavaMail.geo-discussion-forums@vbtf25> <17386272.1266.1330613495577.JavaMail.geo-discussion-forums@vbux23> <b8fvk7lp0qgjctfusfbrvv2rhhn6ebe6do@4ax.com> |
> > Please quote properly. This is Usenet, not a web forum. > Sorry I didn't mean to do something wrong. As you'd have guessed I'm a newbie to groups and programming, so I'm sorry if I did something wrong. Where can I find guidelines to post in this group? > If you don't define the item static, you could reference it from > another translation unit with an "extern double const L_COS;" Also, > you *couldn't* define another (non-static) L_COS in another > translation unit in the same program, since the external names will > then conflict. Thanks (to Christian as well), now I have clear the difference :)
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
static constants are not local to the file they're defined. Luca Cerone <luca.cerone@gmail.com> - 2012-03-01 00:28 -0800
Re: static constants are not local to the file they're defined. Robert Wessel <robertwessel2@yahoo.com> - 2012-03-01 02:55 -0600
Re: static constants are not local to the file they're defined. Geoff <geoff@invalid.invalid> - 2012-03-01 01:25 -0800
Re: static constants are not local to the file they're defined. Luca Cerone <luca.cerone@gmail.com> - 2012-03-01 06:51 -0800
Re: static constants are not local to the file they're defined. Christian Gollwitzer <auriocus@gmx.de> - 2012-03-01 19:21 +0100
Re: static constants are not local to the file they're defined. Robert Wessel <robertwessel2@yahoo.com> - 2012-03-01 12:21 -0600
Re: static constants are not local to the file they're defined. Luca Cerone <luca.cerone@gmail.com> - 2012-03-02 00:56 -0800
Re: static constants are not local to the file they're defined. Robert Wessel <robertwessel2@yahoo.com> - 2012-03-02 03:53 -0600
Re: static constants are not local to the file they're defined. Luca Cerone <luca.cerone@gmail.com> - 2012-03-02 02:42 -0800
csiph-web