<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-text-flowed" style="font-family: -moz-fixed;
font-size: 14px;" lang="x-unicode">On 01.09.2017 8:47, Stefan
Glienke wrote:
<br>
<blockquote type="cite" style="color: #000000;">Inheritance seems
like the obvious way but you just defer the "I cannot extend the
builtin helpers" problem.
<br>
If any third party code decides to do so you are at the same
point again because now do you inherit from the third party
helper or from the builtin one?
<br>
What if two third parties inherit from the helper?
<br>
</blockquote>
<br>
Yes, you are right, I forgot about this issue.
<br>
<br>
<blockquote type="cite" style="color: #000000;">Therefor I argue
that the "only the last one in scope is applied" restriction
should be removed.
<br>
</blockquote>
<br>
This could be also solved by supporting "ancestor list" (what
Delphi documentation talks about but the compiler doesn't allow it
again):
<br>
<br>
TEmbarcaderoHelper = class helper for TObject
<br>
public
<br>
end;
<br>
<br>
TThirdPartyHelper = class helper for TObject
<br>
public
<br>
end;
<br>
<br>
TMyHelper = class helper(TEmbarcaderoHelper, TThirdPartyHelper)
for TObject
<br>
public
<br>
end;
<br>
<br>
<br>
Ondrej
<br>
<br>
</div>
</body>
</html>