<p>Am 25.05.2016 13:54 schrieb "Graeme Geldenhuys" <<a href="mailto:mailinglists@geldenhuys.co.uk">mailinglists@geldenhuys.co.uk</a>>:<br>
><br>
> On 2016-05-25 12:18, Michael Van Canneyt wrote:<br>
> > I am not sure this is safe to do, since an event handler exists of 2<br>
> > pointers: data and method. As far as I know, an interface does not have a<br>
> > data pointer.<br>
><br>
> I don't fully understand your statement about 2 pointers? An event<br>
> handler is simply a procedure of a object. When an event is triggered,<br>
> that simply means the procedure is called and parameters are passed to it.</p>
<p>A "procedure of object" is in fact a TMethod record (yes that type exists) that contains the pointer to the method as well as what is going to be loaded as "Self" (the data part Michael mentioned), because without that you wouldn't know which instance this method belongs to (all instances of a class share the same code after all).</p>
<p>Regards,<br>
Sven</p>