[fpc-pascal] All methods vitrual ?

Adriaan van Os adriaan at adriaan.biz
Mon Oct 9 15:25:57 CEST 2023


> Is there a trick to make (in mode macpas) all class methods implicitely virtual ? I mean, without 
> adding the virtual keyword to all of them ? The reason is that I want to create a tree view of the 
> class hierarchy with all the method names (not just those that are normally in the VMT because they 
> are overridden).

Hm, looking somewhat further, it seems that the vMethodTable of the class VMT does list all 
methods, not just the virtual methods, provided the code was compiled with type info {$M+}

is that correct ?

Regards,

Adriaan van Os



More information about the fpc-pascal mailing list