Re: [racket-users] Macro to extract select subexpressions into other locations

2015-07-21 Thread Alexander D. Knauth
Here's a macro that does something similar: #lang at-exp racket (require (for-syntax syntax/parse racket/contract )) (begin-for-syntax (define (get-extracted-exprs-box extracted-exprs-id) (syntax-local-value extracted-exprs-id)) (define

[racket-users] About redrawing buttons on-demand in gui framework

2015-07-21 Thread Rickard Andersson
Hi, everyone. I've stumbled upon some unforeseen strangeness regarding the redrawing of certain elements in the GUI framework recently. Initially, I assumed that a set-label call for a button, for example, would redraw that button automatically, with the new dimensions and everything in

Re: [racket-users] Macro introduce identifiers in the new expander

2015-07-21 Thread Spencer Florence
That fixed the example I gave, but now this fails: (let () (def) (let () (use))) On Mon, Jul 20, 2015 at 2:50 PM Matthew Flatt mfl...@cs.utah.edu wrote: Repair pushed. On Jul 20, 2015, at 11:14 AM, Matthew Flatt mfl...@cs.utah.edu wrote: Thanks for the info. I think it's a bug

Re: [racket-users] Macro to extract select subexpressions into other locations

2015-07-21 Thread Alexander D. Knauth
Oh. I checked that that the expressions were accumulating in the definition of extract-expression, but I didn't check that it expanded in the right order to do what you want. So this doesn't actually work. On Jul 21, 2015, at 3:08 PM, Alexander D. Knauth alexan...@knauth.org wrote: Here's a

Re: [racket-users] Re: How to draw a 3D ball?

2015-07-21 Thread JK
Le 20/07/2015 11:03, Mianlai Zhou a écrit : Hi, Thanks for your answer. I meant the former, i.e., a 2D pict of a ball with some shading to make it look 3D. Is there any quick way to do it or I have to implement the algorithm by myself? The answer is more general than just in the

Re: [racket-users] Macro to extract select subexpressions into other locations

2015-07-21 Thread Matthias Felleisen
Why not step back and design a notation where testing and documenting can share concepts instead of retro-actively extracting expressions from one place to put somewhere else. -- Matthias On Jul 21, 2015, at 3:23 PM, Alexander D. Knauth alexan...@knauth.org wrote: Oh. I checked that

Re: [racket-users] Macro introduce identifiers in the new expander

2015-07-21 Thread Matthew Flatt
That one should fail (and the same as with the old expander). Each `(let () )` starts a new scope, and the identifier introduced by `(use)` doesn't have the scope for the outer `(let () )` where `(def)` creates a binding. At Tue, 21 Jul 2015 19:38:57 +, Spencer Florence wrote: That