On Fri, Apr 10, 2015 at 4:48 PM, John Carmack <jo...@oculus.com> wrote:
> [...] > > Somewhat related, can a program tell when it is in DrRacket? I want my > servers to run in threads so I can use the REPL there, but I want to leave > one of them as the foreground thread when run from the command line. > IIRC, it's somewhat intended that one should not be able to tell the difference between a file run in DrRacket and run in the console, but I don't remember the precise reason. You can at least easily pass command-line arguments: http://docs.racket-lang.org/reference/Command-Line_Parsing.html?q=commandline Also note the useful but easily missed `#:argv` keyword option, which allows you to simulate receiving arguments from the command-line. Laurent -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.