Re: Singleton
- From: "Chris Morgan" <chris.nospam at lynxinfo dot co dot uk>
- Date: Mon, 21 Jan 2008 12:11:00 -0000
I thought about that a little longer, maybe the Delphi language should add
support for a new "singleton" keyword like this:
type
MySingleton = singleton
strice private
FMyFirstProperty: Integer;
public
property MyFirstProperty: Integer read FMyFirstProperty write
FMyFirstProperty;
procedure MyFirstProcedure;
end;
Delphi doesn't need a singleton class type, because
it is possible to create standalone non-object oriented
procedures and functions within a unit.
Surely a singleton class just emulates a set of
standalone functions?
cheers,
Chris
.
- Follow-Ups:
- Re: Singleton
- From: Alexandre Machado
- Re: Singleton
- From: Jens Mühlenhoff
- Re: Singleton
- References:
- Singleton
- From: Alan T
- Re: Singleton
- From: Chris Rolliston
- Re: Singleton
- From: Chris Morgan
- Re: Singleton
- From: Craig Stuntz [TeamB]
- Re: Singleton
- From: Chris Rolliston
- Re: Singleton
- From: Jens Mühlenhoff
- Re: Singleton
- From: Chris Rolliston
- Re: Singleton
- From: Jens Mühlenhoff
- Re: Singleton
- From: Chris Rolliston
- Re: Singleton
- From: Jens Mühlenhoff
- Re: Singleton
- From: Jens Mühlenhoff
- Singleton
- Prev by Date: Re: Garbage Collection
- Next by Date: Re: Garbage Collection
- Previous by thread: Re: Singleton
- Next by thread: Re: Singleton
- Index(es):
Relevant Pages
|