Re: Where to put constants?

2012-12-26 Thread Thomas Lübking
On Mittwoch, 26. Dezember 2012 13:16:28 CEST, Roney Gomes wrote: > How do you work with constants? A simple private attribute in the > class, or perhaps a shared attribute? How such a constant should be > initialized? "Where you need them" local statics (function specific), global statics (you n

Re: Where to put constants?

2012-12-26 Thread Viranch Mehta
On Wednesday 26 Dec 2012 9:16:28 AM Roney Gomes wrote: > How do you work with constants? A simple private attribute in the > class, or perhaps a shared attribute? How such a constant should be > initialized? kbreakout has all contants defined in one "globals.h" header file, which is included wher