Static functions
Ian Reinhart Geiser
geiseri at yahoo.com
Mon Jan 12 14:30:02 GMT 2004
On Monday 12 January 2004 08:56 am, Bo Thorsen wrote:
> I just convinced myself it was time to remind everyone of this old
> feature: Static functions. I know lots of you already know about this
> feature, but I've seen too many places where it isn't used, so I thought
> I'd give a heads up on it.
we have found adding library level namespaces + statics help clean up code
extensively. as OO dogma around us leads us to put everything in a class we
tend to have a few extra methods that dont fit anywhere.... there is a
tendency to put these in a utility class. we have found its just as easy
(and remarkably clean) to put them in a namespace, and leave them as static.
Just my 2c
-ian reinhart geiser
--
--:Ian Reinhart Geiser <geiseri at yahoo.com>
--:Public Key: http://geiseri.myip.org/~geiseri/publickey.asc
--:Public Calender: http://geiseri.myip.org/~geiseri/publicevents.ics
--:Jabber: geiseri at geiseri.myip.org
--:Be an optimist -- at least until they start moving animals in
--: pairs to Cape Canaveral. ~ Source Unknown
More information about the kde-core-devel
mailing list