[racket] Places and submodules

From: Harry Spier (vasishtha.spier at gmail.com)
Date: Tue Mar 12 00:33:11 EDT 2013

Dear list members,

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,
--------------------------
#lang racket
(module temp2 racket
    (provide place-main)

  (define (place-main pch)
     (place-channel-put pch (format "Hello from place ~a"
     (place-channel-get pch)))))

(require 'temp2)

(let ([pls (for/list ([i (in-range 2)])
    (dynamic-place 'temp2 'place-main))])
    (for ([i (in-range 2)]
         [p pls])
      (place-channel-put p i)
      (printf "~a\n" (place-channel-get p)))
    (map place-wait pls))

-------------------------

I get the following  error  message.

standard-module-name-resolver: collection not found
collection: "temp2"
in collection directories:
C:\Users\Harry\AppData\Roaming\Racket\5.3.3\collects
C:\Program Files\Racket\collects
context...:
standard-module-name-resolver
standard-module-name-resolver: collection not found
collection: "temp2"
in collection directories:
C:\Users\Harry\AppData\Roaming\Racket\5.3.3\collects
C:\Program Files\Racket\collects
context...:
standard-module-name-resolver

Can someone explain why this error?

Thanks,
Harry Spier
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20130312/7f2250b3/attachment.html>

Posted on the users mailing list.