<br><br><div class="gmail_quote">On Tue, Nov 30, 2010 at 12:26 PM, Vincent Snijders <span dir="ltr"><<a href="mailto:vincent.snijders@gmail.com">vincent.snijders@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
2010/11/30 Max Vlasov <<a href="mailto:max.vlasov@gmail.com">max.vlasov@gmail.com</a>>:<br>
<div><div></div><div class="h5">> Hi,<br>
><br>
> it appears recently several pieces if knowledge came to me, I understood how<br>
> anonymous functions (aka closures) work :) and the fact that GNU Pascal<br>
> allows passing local procedure as variables. I mentioned them together<br>
> because as many I don't like the closures as they implemented everywhere<br>
> including delphi (I read also the discussion here that was several month<br>
> ago) and on the other side, I feel that allowing passing local procedures<br>
> (if it's technically possible) is a better way to achieve the same. I mean,<br>
> this will allow to catch local context for executing anything from external<br>
> code (what's actually closures is about).<br>
><br>
> So, I suppose that implementing closures is not in real plans (it's ok, I<br>
> can live with that), but what about the second, is it possible?<br>
><br>
> I will glad to hear different opinions from the developers<br>
><br>
<br>
</div></div>Nested procedural variables are a new feature in fpc 2.5.1. See:<br>
<a href="http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=rev&revision=15656" target="_blank">http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=rev&revision=15656</a><br>
<br>
I don't know if that is what you are asking for.<br>
<br>
Vincent<br></blockquote></div><br><br>Vincent, looks like this is it. I will try to set how it works. Thanks<br><br>Max<br><br>