[racket] at-exp with module language

From: Eli Barzilay (eli at barzilay.org)
Date: Mon Jan 13 16:58:08 EST 2014

A few minutes ago, Scott Klarenbach wrote:
> Thanks Eli.  Since I can say #lang at-exp racket/base,

(That's because it extends the `racket/base' reader.)


> I assumed that if "my-lang.rkt" exports all of racket-base that it
> would work.  But I suppose that is because racket/base acts as a
> module language and a reader, and that when I export it from my
> module language I'm missing the key ingredient?

That's very close: the ingredient that you're missing is that just
re-providing all of the functionality of `racket/base' doesn't export
its reader.  This is because the reader lives in a different level,
not as some provided function.

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!


Posted on the users mailing list.