Re: [racket-users] Editor-canvas% and transparent style = black?

2017-11-08 Thread Matthew Flatt
Thanks for the video! So far, though, I'm not seeing the same thing. On my various Linux installations and on a fresh Linux Mint 18.2 installation, I get the expected gray background. Can you think of any configuration in your installation that I should try to imitate? At Tue, 7 Nov 2017

Re: [racket-users] where does DrRacket get its environment variables on OS X?

2017-11-08 Thread Matthew Flatt
At Wed, 8 Nov 2017 08:31:13 -0800, Matthew Butterick wrote: > 2) Is there an environment variable that I can use to test if a > program is running in DrRacket? For instance, the "XPC_SERVICE_NAME" > variable has the value "org.racket-lang.DrRacket.39428". Though AFAIK > that is a Mac OS specific

[racket-users] Racket in command line, puts out wrong number

2017-11-08 Thread Karim Djemai
Hey Guys, i am relatively new to racket and i would like to use racket in my terminal. That works out pretty well for me except one issue: One of my functions (a recursive one that gives me the euler's number) gives the wrong output, but only when startet in the commandline. When I use it in

[racket-users] Idiomatic Racket approach for handling collisions in library provides?

2017-11-08 Thread Stuart Hungerford
Hi, A newbie question about idiomatic Racket code: Suppose I wanted to create several numeric modules that all had their own interpretation of what addition means. If each of them uses a (provide ... + ...) form, the various "+" exports are going to collide in client modules that (require

Re: [racket-users] where does DrRacket get its environment variables on OS X?

2017-11-08 Thread Robby Findler
How about "env X=Y racket -l- drracket file-to-open-in-drracket.rkt" ? Robby On Wed, Nov 8, 2017 at 2:18 PM, Matthew Butterick wrote: >>> In this case I was trying to configure a web servlet to run in differently >>> when launched from DrRacket (in terms of its port and

Re: [racket-users] where does DrRacket get its environment variables on OS X?

2017-11-08 Thread Leif Andersen
> Hmm ... so if DrRacket adopts a different set of environment variables from > command-line `racket` —... It actually doesn't. This is just because you are opening it with macos's application framework...thingy On the other hand, if you run drracket directly from the command line (by

Re: [racket-users] where does DrRacket get its environment variables on OS X?

2017-11-08 Thread Leif Andersen
> Maybe DrRacket should let you configure environment variables for a program in the same way that it lets you provide command-line arguments Yes. Please. Although just like command line arguments I could see this being a thing I want to change on a per-program basis, so I guess that's a point

Re: [racket-users] where does DrRacket get its environment variables on OS X?

2017-11-08 Thread Matthew Butterick
>> In this case I was trying to configure a web servlet to run in differently >> when launched from DrRacket (in terms of its port and servlet-path) to >> better >> approximate Apache / htaccess conditions that exist on the live web server. > > I wonder whether a submodule is a better

Re: [racket-users] where does DrRacket get its environment variables on OS X?

2017-11-08 Thread Matthew Flatt
At Wed, 8 Nov 2017 10:55:13 -0800, Matthew Butterick wrote: > > > On Nov 8, 2017, at 9:17 AM, Matthew Flatt wrote: > > > > DrRacket tries not to interfere with programs in a detectable way. > > Hmm ... so if DrRacket adopts a different set of environment variables from >

Re: [racket-users] Idiomatic Racket approach for handling collisions in library provides?

2017-11-08 Thread Matthias Felleisen
> On Nov 8, 2017, at 7:33 PM, Stuart Hungerford > wrote: > > Hi, > > A newbie question about idiomatic Racket code: > > Suppose I wanted to create several numeric modules that all had their own > interpretation of what addition means. If each of them uses a

Re: [racket-users] where does DrRacket get its environment variables on OS X?

2017-11-08 Thread Jack Firth
> > I wonder whether a submodule is a better approach here. DrRacket > implicitly runs a `test` submodule, while `racket` doesn't, and you > could add more submodules to the list in DrRacket. But that approach > doesn't work if the conditional adjustment goes in a library, instead > of the

Re: [racket-users] where does DrRacket get its environment variables on OS X?

2017-11-08 Thread 'John Clements' via Racket Users
> On Nov 8, 2017, at 12:42, Robby Findler wrote: > > How about "env X=Y racket -l- drracket file-to-open-in-drracket.rkt” ? +1 John -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this