dedbox / racket-algebraic

Algebraic structures for untyped Racket
MIT License
75 stars 7 forks source link

Why does nothing stay defined in the REPL when I enter an algebrai/racket/base module? #79

Closed dedbox closed 5 years ago

dedbox commented 5 years ago

This works as expected:

#lang racket/base

(define x 17)

If I C-c C-c in emacs (i.e. send to REPL), I can see x in the REPL. If I change the #lang to algebraic/racket/base, I can't.

I don't remember exactly when this started, but it may have something to do with the way I've customized #%module-begin to instantiate class instances.

dedbox commented 5 years ago

Because I'm mangling scopes ruthlessly. Use syntax parameters instead.