[Lazarus] thread safe
Hans-Peter Diettrich
DrDiettrich1 at aol.com
Mon Jun 27 16:05:36 CEST 2011
Lukasz Sokol schrieb:
> The computer/OS/system has no clue of anything you may call 'an object'...
> when compiled, it is just 'code'.
Right.
> OOP is just a convenient abstraction, it's for people needed only :)
OOP is for designers, not for hackers ;-)
When some thread-safe code must never bring a program (automaton,
system...) into an inconsistent state, objects are fine to break down
the entire program into self-contained sub-systems. This allows to
dramatically reduce the degree of freedom of the entire ("flattened")
problem. Whatever can be done entirely inside an object, deserves no
further consideration of everything outside the object.
DoDi
More information about the Lazarus
mailing list