<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 Di., 15. Feb. 2022, 13:06:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
> On Feb 15, 2022, at 3:32 PM, Michael Van Canneyt via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank" rel="noreferrer">fpc-pascal@lists.freepascal.org</a>> wrote:<br>
> <br>
> I requested that this:<br>
> <br>
> procedure TMyObject.Demo;<br>
> <br>
> Procedure DoSub;<br>
> begin<br>
> Writeln('Sub');<br>
> end;<br>
> <br>
> begin<br>
> DoTest(DoSub);<br>
> end;<br>
<br>
So that means "reference to procedure" is not compatible with "is nested"?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">It's relatively "easy" to implement assigning a nested function to function references. However assigning a nested function variable to a function reference is much harder.</div><div dir="auto">Assigning a function reference to a nested function variable is hard as well. </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>