I am just curious, what is the instance size of an Tobject?

in many notifyevents, we would test whether an object is actually of a certain class by
if Sender is TComponent then
  ...
end;

How does the "is" operator work? Is the memory space occupied by that object reference contain a pointer to a class table? If that is true, the minimal instance size of an Tobject is sizeof(pointer)?

Sorry if my question is dumb.

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

Reply via email to