<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Adriaan van Os via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>> schrieb am Mo., 9. Okt. 2023, 15:44:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> Is there a trick to make (in mode macpas) all class methods implicitely virtual ? I mean, without <br>
> adding the virtual keyword to all of them ? The reason is that I want to create a tree view of the <br>
> class hierarchy with all the method names (not just those that are normally in the VMT because they <br>
> are overridden).<br>
<br>
Hm, looking somewhat further, it seems that the vMethodTable of the class VMT does list all <br>
methods, not just the virtual methods, provided the code was compiled with type info {$M+}<br>
<br>
is that correct ?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">No. Only those in the published section are part of the vMethodTable. And when compiled with $M+ the default visibility is changed from public to published. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>