<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>
<div><br></div><div>Harry Spier</div><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>