Re: [racket] A macro's `require' works in module but not in REPL

2012-10-19 Thread Danny Yoo
On Fri, Oct 19, 2012 at 9:04 AM, Greg Hendershott wrote: > I need to fix a bug, https://github.com/greghendershott/gapi/issues/2 . > > I've distilled to a simple case that exhibits the behavior: > > ;; def.rkt > #lang racket > (provide define-foo) > (define-syntax define-foo > (lambda (stx) >

Re: [racket] planet package with DLLs

2012-10-19 Thread Michael Wilber
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/ See the lib/ folder. Antonio Menezes Leitao writes: > Hi, > > I have a package that I uploaded to planet that de

Re: [racket] objects as hash keys

2012-10-19 Thread Ted
Thansk for the answer, I didn't notice this part of the doc. In fact the (make-hasheq) doesn't fit because the objects needs to be inspect with equal? to find a match. It seems it is not possible this way, as writted in the doc. Thanks anyway. > From the docs (3.13 Hash Tables): > Caveat concerni

[racket] Racketcon 2012 videos

2012-10-19 Thread Jon Rafkind
The Racketcon 2012 videos are now online. http://www.youtube.com/user/racketlang Enjoy! Thanks to Blake/Jay/Neil for the video and Eli for the audio. Racket Users list: http://lists.racket-lang.org/users

Re: [racket] objects as hash keys

2012-10-19 Thread Tobias Hammer
From the docs (3.13 Hash Tables): Caveat concerning mutable keys: If a key in an equal?-based hash table is mutated (e.g., a key string is modified with string-set!), then the hash table’s behavior for insertion and lookup operations becomes unpredictable. Try make-hasheq instead of make-has

[racket] objects as hash keys

2012-10-19 Thread Ted
Hi the list, I was wondering for my midi/osc -> event mapping project if it was possible to put objects instances (with racket/class) as hash keys. I tried and it worked. The problem is, I pushed further and when I change object fields, the hash can't find my key anymore, despite I see it in. For

[racket] A macro's `require' works in module but not in REPL

2012-10-19 Thread Greg Hendershott
I need to fix a bug, https://github.com/greghendershott/gapi/issues/2 . I've distilled to a simple case that exhibits the behavior: ;; def.rkt #lang racket (provide define-foo) (define-syntax define-foo (lambda (stx) #`(begin (require net/uri-codec) (define (#,(datum->syntax