[racket-dev] Fwd: [racket-bug] all/12642: #lang slideshow gets error message "module: this function is not defined"

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Wed Mar 21 10:49:23 EDT 2012

Unfortunately, we're not quite there yet. We do have the pane (but
with the #lang present), but the lack of the other things is mostly a
concession to the fact that it isn't yet the case that every source
file in DrRacket should begin with "#lang". Only most.


On Wed, Mar 21, 2012 at 8:12 AM, Stephen Bloch <bloch at adelphi.edu> wrote:
> The whole #lang thing has bothered me for a long time.  How about this?
> EVERY Racket source file is supposed to start with a #lang line, which DrRacket shows in a separate (non-scrollable, one-line) pane, hiding the word #lang, since it MUST be there and therefore provides the user no information.  The "choose language" menu commands would simply replace the contents of this pane with one of several bundled language names.  If you don't want to use one of the bundled ones, you can type into this pane yourself, and the next time you hit "run", either that language is found or it isn't.
> If you open a Racket source file in a text editor, you see the same #lang line you see now.
> What to do with legacy source files that don't have #lang lines?  That shouldn't be insurmountable....
> Stephen Bloch
> sbloch at adelphi.edu

Posted on the dev mailing list.