Re: Singleton



Jens Mühlenhoff wrote:

Chris Morgan wrote:

what about class methods?

We had that somewhere (in one of the subthreads) already. Class
methods lack a way of initializing the class data

Well, in .NET, you can do:

type
TTest = class
class var I: Integer;
class constructor ClassCreate;
end;

ClassCreate will be called before the class (or I) is accessed the
first time.
--
Rudy Velthuis [TeamB] http://www.teamb.com

"It is a miracle that curiosity survives formal education."
-- Albert Einstein
.