On Fri, Dec 30, 2011 at 3:09 PM, Hans-Peter Diettrich <[email protected]> wrote: > 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.
IMHO, I think he talked about: TFoo = object [vs] TFoo = class Marcos Douglas _______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/mailman/listinfo/fpc-devel
