Re: [racket-users] scribble racketresultblock and racketinput

2016-03-07 Thread Matthew Flatt
At Mon, 7 Mar 2016 18:55:15 -0700, Matthew Flatt wrote: > (I think the documentation should say that `racketinput` uses the > 'code-inset style, and I'll fix that.) On closer inspection, the missing documentation seems to be that `racketresult` doesn't use the 'code-inset style, while

Re: [racket-users] scribble racketresultblock and racketinput

2016-03-07 Thread Matthew Flatt
If you want input and output to be together as an interaction, I recommend using `examples` (from `scribble/example`) with `eval:alts` to provide a result manually. If "the same vertical line" just means "the same style of vertical line", you could use @nested[#:style 'code-inset

[racket-users] scribble racketresultblock and racketinput

2016-03-07 Thread Neil Van Dyke
In Scribble, how does one use `racketresultblock` in combination with `racketinput`, such that the result expression is formatted with the same vertical line that the input expression has? (I know how to do this with `racketresult`, but not for multi-line results.) Neil V. -- You received

Re: [racket-users] Dumb lexical scope question

2016-03-07 Thread brendan
Ah, of course, I forgot all about that. I read that paper a while back but I never felt that I really "got" it; it was easy to see the problems that were being solved, but hard to see that the given solutions were correct. I'll have to go through it again now that I've used the system a little

[racket-users] Re: custom keybindings (AltGr)

2016-03-07 Thread Bert De Ketelaere
Hello, after looking around trying to fix my previous problem I found that DrRacket really is not sending any event for AltGr+(Key x) combinations if this combination doesn't actually produces a char. I tried changing the

Re: [racket-users] Dumb lexical scope question

2016-03-07 Thread Matthew Flatt
At Mon, 7 Mar 2016 03:52:39 -0800 (PST), brendan wrote: > I'm sure I'm missing something obvious here. In the Guide, introducing syntax > objects, it says: > > "Most notably, free-identifier=? determines whether two identifiers refer to > the same binding: > > ... > > (free-identifier=? #'car

Re: [racket-users] Re: Dumb lexical scope question

2016-03-07 Thread Matthias Felleisen
You are evaluating (let ((car 8)) #’car) != (let ((car 8)) car) The first one returns a piece of syntax, the second one the value 8. > On Mar 7, 2016, at 8:43 AM, brendan wrote: > > I've realized that technically speaking my post did not actually ask a >

[racket-users] Re: Dumb lexical scope question

2016-03-07 Thread brendan
I've realized that technically speaking my post did not actually ask a question, so: Why does the expression in the example above evaluate to true? After all, "car" evaluates to "#" whereas "(let ([car 8]) car)" evaluates to "8". It sure seems like the two identifiers have different bindings.

[racket-users] Dumb lexical scope question

2016-03-07 Thread brendan
I'm sure I'm missing something obvious here. In the Guide, introducing syntax objects, it says: "Most notably, free-identifier=? determines whether two identifiers refer to the same binding: ... (free-identifier=? #'car (let ([car 8]) #'car)) The last example