<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>sorry ... I still not understand the "idea".</p>
<p><br>
</p>
<p>if code in thread access a local variable (in stack) of the function where thread is issued ... it may access "something" which does not exist any more. correct?</p>
<p><br>
</p>
<div style="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>De:</b> fpc-pascal-bounces@lists.freepascal.org <fpc-pascal-bounces@lists.freepascal.org> em nome de silvioprog <silvioprog@gmail.com><br>
<b>Enviado:</b> segunda-feira, 23 de fevereiro de 2015 16:42<br>
<b>Para:</b> FPC-Pascal users discussions<br>
<b>Assunto:</b> Re: [fpc-pascal] TThread.Queue vs TThread.Synchronize</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">On Mon, Feb 23, 2015 at 4:39 PM, Sven Barth <span dir="ltr">
<<a href="mailto:pascaldragon@googlemail.com" target="_blank">pascaldragon@googlemail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<span class="">On 23.02.2015 20:29, silvioprog wrote:<br>
</span>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<span class="">On Mon, Feb 23, 2015 at 4:24 PM, Philippe Lévi <<a href="mailto:Philippe@quarta.com.br" target="_blank">Philippe@quarta.com.br</a><br>
</span><span class=""><mailto:<a href="mailto:Philippe@quarta.com.br" target="_blank">Philippe@quarta.com.br</a><u></u>>> wrote:<br>
<br>
may be I do not catch it well ... problem with my english understan<br>
... may be. "we'll get" ... you mean some day it should be possible<br>
to program it? .... correct?<br>
<br>
you mean it will be possible to use a pointer to local function in a<br>
call?<br>
<br>
or I misunderstand ...<br>
<br>
______________________________<u></u>__________<br>
De: <a href="mailto:fpc-pascal-bounces@lists.freepascal.org" target="_blank">
fpc-pascal-bounces@lists.<u></u>freepascal.org</a><br>
</span> <mailto:<a href="mailto:fpc-pascal-bounces@lists.freepascal.org" target="_blank">fpc-pascal-bounces@<u></u>lists.freepascal.org</a>><br>
<<a href="mailto:fpc-pascal-bounces@lists.freepascal.org" target="_blank">fpc-pascal-bounces@lists.<u></u>freepascal.org</a><br>
<mailto:<a href="mailto:fpc-pascal-bounces@lists.freepascal.org" target="_blank">fpc-pascal-bounces@<u></u>lists.freepascal.org</a>>> em nome de Sven<br>
Barth <<a href="mailto:pascaldragon@googlemail.com" target="_blank">pascaldragon@googlemail.com</a> <mailto:<a href="mailto:pascaldragon@googlemail.com" target="_blank">pascaldragon@<u></u>googlemail.com</a>>><span class=""><br>
Enviado: segunda-feira, 23 de fevereiro de 2015 16:17<br>
Para: <a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank">fpc-pascal@lists.freepascal.<u></u>org</a><br>
</span> <mailto:<a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank">fpc-pascal@lists.<u></u>freepascal.org</a>><span class=""><br>
Assunto: Re: [fpc-pascal] TThread.Queue vs TThread.Synchronize<br>
<br>
On 23.02.2015 19:41, Philippe Lévi wrote:<br>
> I "thought" it was not possible to use local procedure address as<br>
parameter like in queue( @SyncOnPrint);<br>
> as Clecio showed ...<br>
<br>
Please read the following part of my message again:<br>
<br>
><br>
> For FPC modes and those people that dislike the syntax of<br>
anonymous functions (and yes, I can understand those people ) I hope<br>
that we'll get the following variation to work as well:<br>
<br>
Regards,<br>
Sven<br>
<br>
<br>
Oops, sorry. Just confusion on translation.<br>
<br>
you mean it will be possible to use a pointer to local function in a call? ²<br>
<br>
(some switch to enable this feature?)<br>
</span></blockquote>
<br>
See the mail I just sent to the list. In short: yes, but not exactly as I presented in my example with TThread.Queue().</blockquote>
<div><br>
</div>
<div>I saw. It is very nice. Thank you! =)</div>
<div> </div>
</div>
-- <br>
<div class="gmail_signature">Silvio Clécio<br>
My public projects - <a href="http://github.com/silvioprog" target="_blank">github.com/silvioprog</a></div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>