Marc Santhoff
2018-10-20 18:09:01 UTC
Hi,
from testing a while ago I remember the following:
The memory used by a class instance is composed of
1. the size ".instanceSize()" gives back
2. the memory used by other variables and maybe class instances referenced
by pointers and owned by the instance in question
3. strings are (to be) included in 2., string types are in fact references aka
pointers
The second clause is sort of "by definition", but I do define like that in
this case.
Is that listing correct and complete?
TIA,
Marc
from testing a while ago I remember the following:
The memory used by a class instance is composed of
1. the size ".instanceSize()" gives back
2. the memory used by other variables and maybe class instances referenced
by pointers and owned by the instance in question
3. strings are (to be) included in 2., string types are in fact references aka
pointers
The second clause is sort of "by definition", but I do define like that in
this case.
Is that listing correct and complete?
TIA,
Marc
--
Marc Santhoff <***@web.de>
_______________________________________________
fpc-pascal maillist - fpc-***@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/
Marc Santhoff <***@web.de>
_______________________________________________
fpc-pascal maillist - fpc-***@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/