Skybuck Flying schrieb:

2. Nested/delegated classes incur a pointer access penalty, the deeper the nesting the higher the penalty.

"
Why? Nested classes are not a problem in OPL, more in C++ (multiple
inheritance!).
"

Nested classes are a problem because of the pointer overhead.

For example 100 nested classes will require 100 pointer lookups and thus 100 instructions.

Please give example code of what you consider "nested classes".


So a good question would be: what capabilities do classes have which objects do not have ?

Better question: what common capabilitiers are implemented differently in Object and TObject?

Try to answer that question first, then we'll see what you didn't understand.

DoDi

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to