Re: [racket-users] How to check for existing definitions

2015-05-27 Thread Michael Tiedtke
Thank you very much! That was exactly what I needed. (define (reset-flowers flowers) [when (method-in-interface? 'snap-back-after-regions? card%) ;; See Animations in the README file and see also ;; mred/15064 in Racket's bug database. This is ;; conditional for

Re: [racket-users] How to check for existing definitions

2015-05-27 Thread Alexander D. Knauth
On May 27, 2015, at 6:13 AM, Michael Tiedtke michael.tied...@o2online.de wrote: I'm a little bit astonished that Racket doesn't offer a defined? primitve when it's not possible to implement it with macros because of the strange compile-time behavior. Here’s a fairly useless macro that

Re: [racket-users] How to check for existing definitions

2015-05-27 Thread Laurent
Just as a side comment, the more usual OO way (less 'hacky') to do that kind of things is to define a specific interface that contains a set of method declarations, and make the class implement this interface (or none actually, in which case the interface is used only as a tag). Then you can test

Re: [racket-users] Capturing sets of options in a splicing syntax class?

2015-05-27 Thread Spencer Florence
try `syntax/parse/experimental/template`. It gives you access to `??', which basically says use a if present, else b, and some other cool templates besides. From the docs: (syntax-parse #'(m 1 2 3) [(_ (~optional (~seq #:op op:expr)) arg:expr ...) (template ((?? op +) arg ...))]) #syntax:197:0

Re: [racket-users] Keep getting call-with-file-lock/timeout

2015-05-27 Thread 'John Clements' via Racket Users
On May 27, 2015, at 10:14 AM, N N nawar.noo...@gmail.com wrote: On Wednesday, May 27, 2015 at 5:39:05 PM UTC+1, johnbclements wrote: What version of Racket is this? John Clements 6.1.1 Minimal I did ten minutes of code spelunking, and here’s what I found: It appears that

Re: [racket-users] Capturing sets of options in a splicing syntax class?

2015-05-27 Thread Alexis King
I appreciate the help, but I'll point out that I explicitly said I didn't want to use `template` in my original message. ;) On May 27, 2015, at 05:18, Spencer Florence spen...@florence.io wrote: try `syntax/parse/experimental/template`. It gives you access to `??', which basically says

[racket-users] Keep getting call-with-file-lock/timeout

2015-05-27 Thread N N
I've been trying to set up Racket for evaluation purposes and due to being on CentOS with no root privileges, I've chosen the Racket minimal distribution. I was able to compile it from source and run it and wanted to manually install xrepl for an improved interpreter experience. I found the

Re: [racket-users] How to check for existing definitions

2015-05-27 Thread Michael Tiedtke
Il giorno 27/mag/2015, alle ore 13.08, Alexander D. Knauth ha scritto: On May 27, 2015, at 6:13 AM, Michael Tiedtke michael.tied...@o2online.de wrote: I'm a little bit astonished that Racket doesn't offer a defined? primitve when it's not possible to implement it with macros because of

Re: [racket-users] Keep getting call-with-file-lock/timeout

2015-05-27 Thread N N
On Wednesday, May 27, 2015 at 5:39:05 PM UTC+1, johnbclements wrote: What version of Racket is this? John Clements 6.1.1 Minimal Thanks -- You received this message because you are subscribed to the Google Groups Racket Users group. To unsubscribe from this group and stop receiving emails

Re: [racket-users] Keep getting call-with-file-lock/timeout

2015-05-27 Thread 'John Clements' via Racket Users
On May 27, 2015, at 8:34 AM, N N nawar.noo...@gmail.com wrote: I've been trying to set up Racket for evaluation purposes and due to being on CentOS with no root privileges, I've chosen the Racket minimal distribution. I was able to compile it from source and run it and wanted to manually

Re: [racket-users] Keep getting call-with-file-lock/timeout

2015-05-27 Thread N N
On Wednesday, May 27, 2015 at 6:52:08 PM UTC+1, johnbclements wrote: On May 27, 2015, at 10:14 AM, N N nawar.noo...@gmail.com wrote: On Wednesday, May 27, 2015 at 5:39:05 PM UTC+1, johnbclements wrote: What version of Racket is this? John Clements 6.1.1 Minimal I did ten