<div dir="ltr">Denis, the unique variable is for it to work even if the thread ended its execution by returning a symbol by the name unique - it interprets fine, what's your err?</div><div class="gmail_extra"><br><br><div class="gmail_quote">

2014-05-12 2:38 GMT+02:00 Denis Fourt <span dir="ltr"><<a href="mailto:denis.prog@hotmail.com" target="_blank">denis.prog@hotmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div><div dir="ltr"><font face="Arial">Hi,</font><div><font face="Arial"><br></font></div><div><font face="Arial">In Gambit 4.7.2 documentation, in the section dedicated to threads, there is the following code example :</font></div>

<div><font size="3" face="Arial"><br></font></div><div>
                
        
        
                <div title="Page 103">
                        <div>
                                <div>
                                        <pre><font size="3" face="Arial">(define thread-alive?
            (let ((unique (list ’unique)))
</font></pre>
                                        <pre><font size="3" face="Arial">              (lambda (thread)
                ; Note: this procedure raises an exception if
                ; the thread terminated abnormally.
                (eq? (thread-join! thread 0 unique) unique))))</font></pre><pre><font face="Arial" size="3">This code is actually incorrect (according to gsi), the let is rejected. I believe that :</font></pre><pre><pre>

<font size="3" face="Arial">(define thread-alive?</font><span style="font-family:Arial;font-size:12pt"> </span></pre><pre><span style="font-family:Arial;font-size:12pt"> (lambda (thread)</span></pre><pre><font size="3" face="Arial">     (eq? (thread-join! thread 0 'unique) 'unique)))</font></pre>

<pre><font size="3" face="Arial"><br></font></pre><pre><font size="3" face="Arial">should be enough (though I do not know what happens if the thread returns nothing). I would like to know if there was some precise reason behind this let construction.</font></pre>

<pre><font face="Arial" size="3">Thanks,</font></pre><pre><font face="Arial" size="3"><br></font></pre><pre><font face="Arial" size="3">Denis</font></pre></pre>
                                </div>
                        </div>
                </div></div>                                          </div></div>
<br>_______________________________________________<br>
Gambit-list mailing list<br>
<a href="mailto:Gambit-list@iro.umontreal.ca">Gambit-list@iro.umontreal.ca</a><br>
<a href="https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list" target="_blank">https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list</a><br>
<br></blockquote></div><br></div>