[racket-dev] racket -m seems broken
That's how it always worked, I'm pretty sure. A simple experiment
seems to confirm:
/Applications/Racket\ v5.2.1/bin/racket -m ~/x.rkt
main: not defined or required into the top-level environment
You probably wanted racket -tm x.rkt.
Robby
On Fri, Aug 3, 2012 at 4:02 PM, Sam Tobin-Hochstadt <samth at ccs.neu.edu> wrote:
> This interaction seems wrong to me. Did we change the semantics of
> `-m` to only use submodules?
>
> [samth at loki:~/tmp plt] racket
> Welcome to Racket v5.3.0.17.
> ->
> [samth at loki:~/tmp plt] cat x.rkt
> #lang racket
> (provide main)
> (define (main) 42)
> [samth at loki:~/tmp plt] racket -m x.rkt
> main: not defined or required into the top-level environment
> [samth at loki:~/tmp plt] racket --main x.rkt
> main: not defined or required into the top-level environment
> --
> sam th
> samth at ccs.neu.edu
> _________________________
> Racket Developers list:
> http://lists.racket-lang.org/dev