Re: [racket] Newbie question: creating a custom canvas

2012-08-23 Thread Richard Cleis
I dont know enough about this stuff, other than to 'rather slavishly' follow your code and make it work. :O) Try this: ... (define/override (on-paint) ; eliminate the argument (define dc (send this get-dc)) ; 'this' is the current instance ... On Aug 23, 2012, at 6:29 PM, Gregory Woodho

Re: [racket] Enhancing a macro

2012-08-23 Thread Harry Spier
Thanks Jeremiah! I took your idea and modified it slightly so that the let**-debug is in the body of the parameterize. It works great. Cheers, Harry (define indent-size (make-parameter 0)) (define-syntax let**-debug (syntax-rules () [(let**-debug tmp a ...) (parameterize ([indent-size (+

[racket] Newbie question: creating a custom canvas

2012-08-23 Thread Gregory Woodhouse
I apologize in advance for the elementary nature of this question, and for the amount of code included below. I'm having a tough time following the documentation for racket/gui and racket/draw. My first attempt to create a Sudoku grid follows the example in the documentation rather slavishly and

[racket] Adding contracts to frtime/core/dv.rkt produces errors

2012-08-23 Thread Patrick Mahoney
Hello all, I am attempting to do some further work on the frtime lang. Specifically, I'm working out of a branch based on the pull request https://github.com/plt/racket/pull/138 - this new branch is the frtime-contracts branch. Link to frtime-contracts branch: https://github.com/paddymahoney/racke

Re: [racket] Anyone familiar with mercurial? Add syntax coloring to github?

2012-08-23 Thread Matthias Felleisen
Thank you very much! -- Matthias On Aug 23, 2012, at 12:59 PM, Greg Hendershott wrote: > Update: Georg accepted the pull request into pygments a few minutes ago. > > Next: I'll keep an eye on the progress pulling into Github and Bitbucket. > > On the Github side, I *think* the relevant repo i

Re: [racket] Anyone familiar with mercurial? Add syntax coloring to github?

2012-08-23 Thread Greg Hendershott
Update: Georg accepted the pull request into pygments a few minutes ago. Next: I'll keep an eye on the progress pulling into Github and Bitbucket. On the Github side, I *think* the relevant repo is . It looks like they pull from pygments every 1-3 months. The

Re: [racket] (where-not ...) in Redex

2012-08-23 Thread Matthias Felleisen
I would almost prefer the use of 'when' for 'where' and the introduction of 'unless'. The type setting of 'when' could still use 'where' as the English word (and perhaps we can have a way to override it). I am not sure how to type set 'unless' other than by providing a the negative operator