[fpc-devel] Class field reordering
jonas.maebe at elis.ugent.be
Sun Jul 15 15:49:56 CEST 2012
On 14 Jul 2012, at 14:16, Skybuck Flying wrote:
> I don't think this is a good idea.
> For example while debugging and looking at the memory in raw this would lead to confusion.
By knowing the order of the fields, you still don't know their exact offsets. If you want to know their address, print @classinstance.fieldname
> It's already bad that Delphi adds invisible fields to classes so they cannot be simply dumped to disk... (virtual method table pointers ?) this would make it even worse.
If you want to program at an assembler level of abstraction, don't use high level language features.
More information about the fpc-devel