On Debian, the code below runs in compiled mode (raco exe test.rkt) in Racket 
6.2.1.  However, In Racket 6.3, dynamic-require chokes. 

dynamic-require: unknown module
  module name: #<resolved-module-path:(submod '#%mzc:test place-body-1)>

In 6.3.0.10, it fails differently

place: contract violation
  expected: (or/c module-path? path?)
  given: '''name
  context...:
   /usr/racket-6.3.0.10/collects/racket/place.rkt:110:0: start-place

If running this code via "racket test.rkt", then it works in all versions. 

Thanks,
JG


#lang racket                                                                    
                    

(define (some-place-stuff)                                                      
                    
  (define places                                                                
                  
    (for/list ((i 4))                                                           
                  
      (place pch                                                                
                  
             (define R (place-channel-get pch))                                 
                  
             (place-channel-put pch (+ R R)))))                                 
                  

  (for ((i (in-range (length places)))                                          
                  
        (p (in-list places)))                                                   
                  
    (place-channel-put p i))                                                    
                      
  
  (for ((p (in-list places)))                                                   
                  
    (printf "~a\n" (place-channel-get p))))                                     
                  


(module+ main                                                                   
                    
  (some-place-stuff))                                                           
                    

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to