<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Am 11.09.2022 um 14:22 schrieb Sven
Barth via fpc-pascal:<br>
</div>
<blockquote type="cite"
cite="mid:CAFMUeB8FCjdb3FRPd0F5QLnvfbVv5emn7TaCTcZWbLuq06xyBA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="auto">
<div>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">Ondrej Pokorny via
fpc-pascal <<a
href="mailto:fpc-pascal@lists.freepascal.org"
moz-do-not-send="true" class="moz-txt-link-freetext">fpc-pascal@lists.freepascal.org</a>>
schrieb am So., 11. Sep. 2022, 12:18:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Shouldn't
this assignment be forbidden?
<div>
<pre>type
TProc = procedure is nested;
function TestNested: TProc;
begin
result := procedure // why is this possible?
begin
writeln(data);
end;
It is not a nested function but an anonymous one.</pre>
</div>
</blockquote>
</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">And? An anonymous function is assignment
compatible to multiple left sides depending on what it
captures. See my announcement mail.</div>
</div>
</blockquote>
<p>Thank you Sven - I missed this info in your email.</p>
<p>Ondrej<br>
</p>
</body>
</html>