Re: [racket] confusion about shadowing predefined functions in interactions window

2012-10-23 Thread Dan Grossman
Thanks, these emails explain things fairly clearly. It's worth noting that as more functions get added to racket, it becomes more likely to trip across this. In particular, we hit this only because range was added between 5.2 and 5.3. --Dan On Tue, Oct 23, 2012 at 2:12 PM, Asumu Takikawa wrote

Re: [racket] confusion about shadowing predefined functions in interactions window

2012-10-23 Thread Asumu Takikawa
On 2012-10-23 08:48:35 -0700, Dan Grossman wrote: >Thanks, David.* I would be interested in someone walking through how this >behavior arises -- as well as the design issue regarding the "hopeless >top-level" A few months ago, I collected all of the instances of "the top-level is hopel

Re: [racket] planet package with DLLs

2012-10-23 Thread John Clements
On Oct 19, 2012, at 10:32 AM, Michael Wilber wrote: > I'm not sure about the msvcp100.dll problem, but clements/portaudio > distributes PortAudio for windows clients: > http://planet.racket-lang.org/package-source/clements/portaudio.plt/3/1/ Yep, I was going to point to that, too. WRT your ques

Re: [racket] three-n-plus-one

2012-10-23 Thread Danny Yoo
> Perhaps you should consider putting these on the Racket Blog? What's the process for doing so? Racket Users list: http://lists.racket-lang.org/users

Re: [racket] mysterious error message

2012-10-23 Thread Danny Yoo
On Tue, Oct 23, 2012 at 1:32 PM, Arthur Nunes-Harwitt wrote: > Hi, > > I'm running DrRacket version 5.2. > > In Pretty Big, I get the following error message. > > The variable cl is highlighted in the definitions window, and in the > interactions window the following text is displayed (parti

[racket] mysterious error message

2012-10-23 Thread Arthur Nunes-Harwitt
Hi, I'm running DrRacket version 5.2. In Pretty Big, I get the following error message. The variable cl is highlighted in the definitions window, and in the interactions window the following text is displayed (partially in red). cl: expected cl in: cl In R5RS the code runs fine.

Re: [racket] three-n-plus-one

2012-10-23 Thread John Clements
On Oct 22, 2012, at 4:21 PM, Danny Yoo wrote: > http://hashcollision.org/three-n-plus-one/ > > Racket Users list: > http://lists.racket-lang.org/users Perhaps you should consider putting these on the Racket Blog? Also, I think that the racket blog should probably get a m

Re: [racket] Web-Server: Continue Tutorial, Templates and Dispatch

2012-10-23 Thread Jay McCarthy
On Mon, Oct 22, 2012 at 8:32 AM, Helmut Dobretzberger wrote: > Hey, > > I want to build my new web-application with the racket-webserver, so I have > worked through the continue-tutorial. > Now i want to improve the simple blog from the tutorial to learn more > web-server tecniques which leads to

Re: [racket] confusion about shadowing predefined functions in interactions window

2012-10-23 Thread Dan Grossman
Yes, in my non-Racket-expert view, the core issue is certainly interactions between toplevel and the module system. It seems unfortunate at best that we have: Welcome to DrRacket, version 5.3 [3m]. Language: racket; memory limit: 512 MB. > (define (range lo hi) (print "hi") (if (> lo hi

Re: [racket] confusion about shadowing predefined functions in interactions window

2012-10-23 Thread Jens Axel Søgaard
I forgot to add one rationale for having a context dependent meaning of define-values. With the current setup, you can write (module foo some-lang (define (range ...) ...)) without worrying about whether range is defined in some-lang or not. -- Jens Axel Søgaard 2012/10/23 Jens Axel Søgaar

[racket] confusion about shadowing predefined functions in interactions window

2012-10-23 Thread Jens Axel Søgaard
2012/10/23 Dan Grossman : > > Thanks, David. I would be interested in someone walking through how this > behavior arises -- as well as the design issue regarding the "hopeless > top-level": Is this the least-bad option available or an unexpected > consequence? > > --Dan The expansion in the repl

Re: [racket] putenv

2012-10-23 Thread Kieron Hardy
I believe there is a Unix system call (available through the C interface, but not through a shell command) that can modify the environment of the parent of a process. I think it's used in the implementation of the commands that manipulate the shell's own environment. But IIRC, by design, a proce

Re: [racket] confusion about shadowing predefined functions in interactions window

2012-10-23 Thread Dan Grossman
Thanks, David. I would be interested in someone walking through how this behavior arises -- as well as the design issue regarding the "hopeless top-level": Is this the least-bad option available or an unexpected consequence? --Dan On Mon, Oct 22, 2012 at 7:30 PM, David Van Horn wrote: > On 10/2

Re: [racket] Custom Keybindings - Editor Insert Poofed

2012-10-23 Thread Ray Racine
Up until recently the following worked for me. Create a custom keybindings file. Add the following line. (keybinding "c:\\" (λ (editor evt) (send editor insert "λ"))) And a Ctrl:\ would insert a λ for me. Recently this has stopped working as reported below. Any ideas on how to bring it back?

Re: [racket] putenv

2012-10-23 Thread heraklea
Hello, could anybody explain me how to get a property with arguments. WshEnvironment Object: Object.Item(natIndex) This does not run : (define ENV (com-get-property WSHShell "Environment") ) (com-get-property ENV "Item" "SYSTEM") Error: com-get-property: failed for "Item" (8002000e; Unzulässig

Re: [racket] putenv

2012-10-23 Thread heraklea
Ok, now I try it a little bit different. I try to write this code in Racket/scheme: Set WSHShell = WScript.CreateObject("WScript.Shell") WSHShell.Environment("SYSTEM").item("var") = "value" (require ffi/com) (define WSHShell (com-create-instance "WScript.Shell")) (define ENV (com-get-property WS

Re: [racket] putenv

2012-10-23 Thread Niklas Larsson
From: Niklas Larsson Sent: 2012-10-23 10:16 To: herak...@gmx.de Subject: RE: [racket] putenv The environment is something that belongs to a process (and its children). The way to change the system wide defaults on windows (from a program) is to change the registry keys that hold them. Remember that

Re: [racket] putenv

2012-10-23 Thread Norman Gray
On 23 Oct 2012, at 08:46, herak...@gmx.de wrote: > Hmm, is there a Racket specific command to change env variables system wide?? > The (system "...") command also change it only locally…. No, and there can't be such a command, because the system itself doesn't support it (as before, my remarks

Re: [racket] putenv

2012-10-23 Thread heraklea
Hmm, is there a Racket specific command to change env variables system wide?? The (system "...") command also change it only locally Yours, Original-Nachricht > Datum: Mon, 22 Oct 2012 08:02:36 -0600 > Von: Jay McCarthy > An: herak...@gmx.de > CC: racket > Betreff: Re: [rac