<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Ryan Joseph via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>> schrieb am Mo., 22. Feb. 2021, 10:07:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
> On Feb 19, 2021, at 8:50 AM, Ryan Joseph <<a href="mailto:genericptr@gmail.com" target="_blank" rel="noreferrer">genericptr@gmail.com</a>> wrote:<br>
> <br>
> I just realized another potential problem. If we use the "default" keyword that means there could be multiple "defaults" unless we limit the property to 1 per class, which would kind of defeat the purpose of the feature (like the issue we had with helpers and made multi-helpers for).<br>
<br>
Can you respond to this concern? It could be a deal breaker for the syntax.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">It depends on how "default" is defined. If we define it as "moves the interface into the class' namespace" there is no problem as long as there are no other conflicts (e.g. two interfaces with a Draw method without further parameters that should still be handled by two different delegates => simply not possible).</div><div dir="auto"><br></div><div dir="auto">I *think* Delphi allows multiple default array properties as long as they have different index types (e.g. String vs Integer), though I'd need to test this.</div><div dir="auto"><br></div><div dir="auto">But independent of that I wouldn't have a problem to define "default" for a delegation property in the way mentioned above. </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>