[DUG] basic question

Sean Cross Sean.Cross at catalystrisk.co.nz
Thu Jul 26 10:00:59 NZST 2007


> Which leads me to another point, It would be nice (and maybe Delphi
> does) have class variables reintroduced in subclasses ie
>
> TSingleton = class
>   public
>     class var Instance;
>  end;
>
> TSingletonA = class(TSingleton)
>
> )
>
> TSingletonB = class(TSingleton)
>
> )
>
> do a & B 'share' Instance?
>
> Neven
>

They do.  See http://hallvards.blogspot.com/2007/05/hack17-virtual-class-variables-part-i.html

Sean



More information about the Delphi mailing list