synchronous class [Re: Multi threading support was Re: [fpc-devel] Russian locale information not compatible withFPClocale variables]

Micha Nelissen micha at neli.hopto.org
Thu Jul 31 12:19:47 CEST 2008


Martin Friebe wrote:
> IMHO per class may create some problems? but maybe I am just overlooking 
> something?
> 
> TBar =class( TFoo ) end synchronized class;
> 
> Let's say TFoo was declared in another unit, and TFoo was not declared 
> Synchronized. Then TFoo code can be entered by anyone at any time.
> Even if a thread is in TBar. How would one make sure, that a base class, 
> knows about all classes that inherit from it?

Why does it need to know? Base classes can't access the fields of 
inherited classes anyway.

Micha



More information about the fpc-devel mailing list