[racket] Checking whether running from DrRacket.

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Wed Feb 13 13:46:26 EST 2013

Sounds like a bug (well, pending the outcome of this discussion).


On Wed, Feb 13, 2013 at 12:16 PM, Stephen Bloch <bloch at adelphi.edu> wrote:

> #lang racket
> (define (blah x)
>   (display x)
>   (newline)
>   (display x)
>   (newline))
>
> (module* main #f
>          (blah 7))
>
> In DrRacket, I hit "Run" and it prints 7 twice.
> In DrRacket, I choose "Create Executable"->"Stand-alone", then run the
> resulting binary from the Unix command line, and it does nothing.
> In DrRacket, I choose "Create Executable"->"Launcher", then run the
> resulting shell script, and it prints 7 twice.
> In DrRacket, I choose "Create Executable"->"Distribution", it produces a
> .dmg file, I open this, then find the binary in the "bin" folder and run
> it, and it does nothing.
>
>
> Stephen Bloch
> sbloch at adelphi.edu
>
>
> ____________________
>   Racket Users list:
>   http://lists.racket-lang.org/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20130213/494ae4d4/attachment-0001.html>

Posted on the users mailing list.