[fpc-devel] Safely shareable objects
Hans-Peter Diettrich
DrDiettrich1 at aol.com
Fri Jul 1 17:49:22 CEST 2011
Adem schrieb:
> On 2011-06-30 17:07, Hans-Peter Diettrich wrote:
>> The idea is a merge of reference counting and thread synchronization,
>> which I could not find in any other language yet (dunno about ADA in
>> detail), but which can be implemented easily in OPL/FPC. Inspiration
>> came from TThreadList and Interfaces.
>
> Could there be a fully lockable object class?
>
> I mean an class which (when locked) none of its
> methods/properties/variables can be read/called/altered from outside
> except, of course, by the locking object itself.
Such a beast would deserve many coding efforts, which are unlikely to be
ever taken. It's much simpler to control existing references to an
object, since every use of an object deserves an object reference.
No woman - no cry ;-)
DoDi
More information about the fpc-devel
mailing list