[plt-scheme] Issues with expand

From: Casey Klein (clklein at calpoly.edu)
Date: Wed Aug 9 12:18:33 EDT 2006

I've run into two confusing issues with "expand."

1. Running the module below produces the error "require: broken compiled 
code (phase 0, defn-phase 0): cannot find module m in: x."

(module m mzscheme
  (define x 42)
  (expand #'(module n mzscheme x)))

That cryptic message makes me thing this is a bug.

2. Running this similar module produces the error "expand: unbound variable 
in module in: x."

(module m mzscheme
  (expand #'(module n mzscheme (define x 42) x)))

However, evaluating this "expand" expression directly from the interactions 
prompt is successful.

-Casey


Posted on the users mailing list.