Is there a way to define 2 modules within a file and reference them or is a 
file limited to 1 module only (but may have multiple submodules)?

Here’s a small sample: 

#lang racket

(module A racket
˘  (provide X)
  (define X 'foo))

(module B racket
  (require 'A)
  (printf "X=~a~%" X))

Apparently, as I understand it, I’m already nesting modules within the #lang 
racket. But I’m not sure how to require A from within B in this situation. 

Kevin

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/6326DC5D-44D5-4CE9-B2B8-E781A6D51561%40gmail.com.

Reply via email to