[racket-dev] racket -m seems broken

From: Sam Tobin-Hochstadt (samth at ccs.neu.edu)
Date: Fri Aug 3 17:09:43 EDT 2012

On Fri, Aug 3, 2012 at 5:06 PM, Robby Findler
<robby at eecs.northwestern.edu> wrote:
> 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.

Well, now I feel silly.  Somehow I always forget the `-t`.

>
> 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



-- 
sam th
samth at ccs.neu.edu

Posted on the dev mailing list.