[racket] #lang/module equivalence

From: Shriram Krishnamurthi (sk at cs.brown.edu)
Date: Tue Aug 3 11:12:30 EDT 2010

According to the docs,

      #lang s-exp module-path
      form ...

    is equivalent to

      (module name module-path
	form ...)


  #lang s-exp lang/htdp-advanced

  (check-expect 1 2)

runs without error (though there is no error signaled either), whereas

  Welcome to DrRacket, version 5.0 [3m].
  Language: racket; memory limit: 128 MB.
  > (module M lang/htdp-advanced (check-expect 1 2))
  . check-expect: found a test that is not at the top level in:
(check-expect 1 2)

What am I missing?


Posted on the users mailing list.