[fpc-devel] Refactoring tobjectdef.vmt_def

Jonas Maebe jonas at freepascal.org
Sun May 17 16:15:26 CEST 2020

On 22/04/2020 09:33, Jonas Maebe wrote:
> On 21/04/2020 22:56, Jonas Maebe wrote:
>> What happens in that case, is
>> tclassalias ttypesym contains a reference to toriginalclass' tobjectdef,
>> and that tobjectdef's typesym be to toriginalclass' typesym. And in the
>> unit symtable holding that typesym, we will find the vmtdef we need
>> (because it got created when toriginalclass was defined).
> However, both toriginalclass tobjectdef and typesym are in the same
> symtable, so it should still be okay, actually. I would have revert the
> change and test/debug it again to find out why I thought this change was
> necessary.

I've checked and tested, and it's indeed safe to remove the dependency
on the typesym, so I have removed it.


More information about the fpc-devel mailing list