<p>Am 23.08.2017 09:42 schrieb "Michael Van Canneyt" <<a href="mailto:michael@freepascal.org">michael@freepascal.org</a>>:<br>
><br>
><br>
><br>
> On Tue, 22 Aug 2017, Anthony Walter wrote:<br>
><br>
>> I just wanted to point out that revision 37023 Sven added type helper<br>
>> support for interfaces.<br>
>><br>
>> Good job and thank you Sven!<br>
>><br>
><br>
> I'm having trouble understanding why this could be useful (apart from completeness).<br>
> The only thing I can come up with is adding properties:<br>
><br>
>   Property SomeProp : TSomeType Read GetSomeProp Write SetSomeProp;<br>
><br>
> where GetSomeProp and SetSomeProp are part of the interface.<br>
><br>
> Any other examples ?<br>
 <br>
It's the same as for the other kinds of helpers: being syntactic sugar.<br>
E.g. if I have an interface that has two methods that both return a string, but more often than not I need a combination of both results. The previous solution would have been a global function, now I can also do a helper with a method.</p>
<p>Regards,<br>
Sven</p>