[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: static class in c++
From: glaurent () telegraph-road ! org
Date: 2001-04-23 9:12:00
[Download RAW message or body]
Charles Samuels <charles@kde.org>:
> On Monday 23 April 2001 01:19 am, Greg Hulands wrote:
> > Foo()
> > {
> > if (!foo)
> > foo = new Foo;
> >
> > return foo;
a ctor doesn't explicitely return a value.
> What you're looking for is 'foo = this;' instead of foo = new Foo;
More like the singleton pattern.
http://www.inquiry.com/techtips/cpp_pro/10min/10min0200.asp
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic