<div dir="ltr">I think that error is for the situation where you write:<div><br></div><div><span style="font-family:monospace">(dynamic-place ''</span><span style="font-family:monospace">temp2 'place-main)</span></div>
<div><span style="font-family:monospace"><br></span></div><div style><font face="monospace">You need the first quote to be quoted require spec and the second quote because the module's name itself has a quote in it.</font></div>
<div style><font face="monospace"><br></font></div><div style><font face="monospace">As to your original problem, I think you can use `submod' in the require spec to get a place to use a submodule.</font></div><div style>
<font face="monospace"><br></font></div><div style><font face="monospace">Robby</font></div><div style><font face="monospace"><br></font></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Mar 12, 2013 at 1:06 PM, Harry Spier <span dir="ltr"><<a href="mailto:vasishtha.spier@gmail.com" target="_blank">vasishtha.spier@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Apologies, I see the problem now. I missed where it says in the documentation for dynamic-places.<br></div><div>"The module-path argument must not be a module path of the form (quote sym) unless the module is predefined (see module-predefined?)."</div>
<span class="HOEnZb"><font color="#888888">
<div><br></div><div>Harry Spier</div></font></span><div class="HOEnZb"><div class="h5"><br><div class="gmail_quote">On Tue, Mar 12, 2013 at 12:33 AM, Harry Spier <span dir="ltr"><<a href="mailto:vasishtha.spier@gmail.com" target="_blank">vasishtha.spier@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Dear list members,<br></div><div><br></div><div>I'm going through the documentation on "places". The example in the reference manual 10.5 works as described but when instead of having the code in two modules in separate files as in the example, I use submodules as follows, </div>
<div>--------------------------</div><div>#lang racket<br>(module temp2 racket<br> (provide place-main)<br> <br> (define (place-main pch)<br> (place-channel-put pch (format "Hello from place ~a"<br> (place-channel-get pch)))))<br>
<br> (require 'temp2)<br> <br>(let ([pls (for/list ([i (in-range 2)])<br> (dynamic-place 'temp2 'place-main))])<br> (for ([i (in-range 2)]<br> [p pls])<br> (place-channel-put p i)<br>
(printf "~a\n" (place-channel-get p)))<br> (map place-wait pls))<br> <br></div><div>-------------------------</div><div><br></div><div>I get the following error message.</div><div><br></div><div>
standard-module-name-resolver: collection not found<br> collection: "temp2"<br> in collection directories:<br> C:\Users\Harry\AppData\Roaming\Racket\5.3.3\collects<br> C:\Program Files\Racket\collects<br>
context...:<br>
standard-module-name-resolver<br>standard-module-name-resolver: collection not found<br> collection: "temp2"<br> in collection directories:<br> C:\Users\Harry\AppData\Roaming\Racket\5.3.3\collects<br> C:\Program Files\Racket\collects<br>
context...:<br> standard-module-name-resolver<br></div><div><br></div><div>Can someone explain why this error?</div><div><br></div><div>Thanks,</div><div>Harry Spier</div><div><br></div>
</blockquote></div><br>
</div></div><br>____________________<br>
Racket Users list:<br>
<a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
<br></blockquote></div><br></div>