<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Bart via fpc-devel <<a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>> schrieb am Fr., 8. Jan. 2021, 20:07:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It seems I cannot use a stand-alone function that is declared in the<br>
implementation of the unit?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Correct. </div><div dir="auto"><br></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">
Why is that?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Generics are a stream of tokens that is reparsed when specialized. Functions declared in the implementation section are simply not available then thus its forbidden right away. This is Delphi compatible. </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>