<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi,<div><br></div><div>my error was that the "quote" was actually a different unicode char (from the copy/paste), therefore gsi did not understand it as a quoted symbol but as an unquoted (undefined) symbol.</div><div><br></div><div>And I got a weird error message because of the code point of that char was written right in it. And I have to admit it, I had no clue about what was occurring. </div><div><br></div><div>I understand that no thread could return anything that would be eq? with (let ((unique (list 'unique))). But :</div><div><br></div><div>a) Is there anything more simple than using list? </div><div>b) Would it be a good idea to have one (or more) reserved symbol (or keyword) in Gambit like None, Nothing, Fail, etc. to handle that kind of problem. I am asking this question because a similar problem arises with hash table or similar dictionary like structures. Most of the time #f or '() work except when storing booleans or lists.</div><div><br></div><div>Any thoughts?</div><div><br></div><div>Denis</div><div><br></div><div><br><div><hr id="stopSpelling">From: mikael.rcv@gmail.com<br>Date: Mon, 12 May 2014 14:33:44 +0200<br>Subject: Re: [gambit-list] example from the doc<br>To: denis.prog@hotmail.com; gambit-list@iro.umontreal.ca<br><br><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="ecxgmail_extra"><br><br><div class="ecxgmail_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="ecxgmail_quote" style="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></div></div>                                           </div></body>
</html>