<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>