[plt-scheme] shadowing initial imports (

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Wed Mar 19 09:46:53 EDT 2008

Version implements Jos's suggestion:


This change means, for example, that you can write

  #lang scheme
  (require srfi/1)

in which case the body of the module uses `map', `third', and several
other names from `srfi/1' instead of from `scheme'.

This shadowing rule applies only to the initial import (a.k.a.
"language" of the module). For example,

  #lang scheme
  (require scheme srfi/1)

still reports a syntax error, since `scheme' is (also) `require'd in
the module body, and `scheme' and `srfi/1' provide many of the same
names with different bindings.


Posted on the users mailing list.