[racket] possibility of defining recontract-all-from-out

2014-09-10 Thread Jon Zeppieri
Rather than listing a large number of identifiers in a (recontract-out ...) spec, I'd like to re-contract everything from a certain required private module. I don't know how to do this. The crux of the problem is that syntax-local-module-required-identifiers can only be called while a provide trans

Re: [racket] TR predicate documentation, typo?

2014-09-10 Thread Asumu Takikawa
On 2014-09-10 22:50:35 -0400, Anthony Carrico wrote: > "The filter specifies that when (string? x) evaluates to a true value, > the variable x can be assumed to have type String. Likewise, if the > expression evaluates to #f, the variable has type String." > > I think there must be a typo here, wha

[racket] TR predicate documentation, typo?

2014-09-10 Thread Anthony Carrico
In http://docs.racket-lang.org/ts-reference/type-ref.html 1.6 Other Type Constructors "The filter specifies that when (string? x) evaluates to a true value, the variable x can be assumed to have type String. Likewise, if the expression evaluates to #f, the variable has type String." I think ther

Re: [racket] Possible bug with init-auto-scrollbars

2014-09-10 Thread Amy Stahlman
On Wed, Sep 10, 2014 at 7:46 PM, Matthew Flatt wrote: > That's a bug in v6.1 and earlier (on platforms other than Mac OS X). > > The bug has been fixed for the next version, so you could try a > snapshot from > http://pre.racket-lang.org/ > > If you need to stick with a different version, I thin

Re: [racket] Possible bug with init-auto-scrollbars

2014-09-10 Thread Matthew Flatt
That's a bug in v6.1 and earlier (on platforms other than Mac OS X). The bug has been fixed for the next version, so you could try a snapshot from http://pre.racket-lang.org/ If you need to stick with a different version, I think you can work around the bug by creating a `canvas%` subclass that

[racket] Possible bug with init-auto-scrollbars

2014-09-10 Thread Amy Stahlman
I've been working on a program that uses "init-auto-scrollbars" and I noticed that when the window is resized it actually changes the size of the virtual canvas along with the literal canvas instead of just resizing the scrollbar and changing the size of the literal canvas. Here's an example that

Re: [racket] catalog pkg versioning: am I doing it right?

2014-09-10 Thread Jay McCarthy
On Wed, Sep 10, 2014 at 5:03 PM, John Clements wrote: > It's possible to specify "version exceptions" in the new package catalog > system (i.e., on pkg.racket-lang.org). I want to use one version (old > version) for pre-6.0, and another one for >= 6.0. IIUC, the right way to do > this is to specif

[racket] catalog pkg versioning: am I doing it right?

2014-09-10 Thread John Clements
It's possible to specify "version exceptions" in the new package catalog system (i.e., on pkg.racket-lang.org). I want to use one version (old version) for pre-6.0, and another one for >= 6.0. IIUC, the right way to do this is to specify a mapping for 'default to my pre-6 branch, and then explicit

Re: [racket] htdp: functions of section 19 violate the grammar of section 8

2014-09-10 Thread Stephen Chang
The arguments are the The function position is or Essentially, the grammar in sec20 extends sec8 with the ability to: - pass functions and primitives, like +, as arguments, and - compute the applied function in the function position instead of always using predefined s or s Does that make

Re: [racket] htdp: functions of section 19 violate the grammar of section 8

2014-09-10 Thread Daniel Bastos
I remember having had that question when I was at that chapter. I must have thought I answered it, but I'm having it again and unable to answer now. IOW, I'm confused. I'm having difficulties with this phrase too. "First, the names of functions and primitive operations are used as arguments in app

Re: [racket] htdp: functions of section 19 violate the grammar of section 8

2014-09-10 Thread Stephen Chang
I believe it's answered in a subsequent paragraph? "The abstract functions of section 19 violate Scheme's basic grammar in two ways. First, the names of functions and primitive operations are used as arguments in applications. An argument, though, is an expression, and the class of expressions doe

[racket] htdp: functions of section 19 violate the grammar of section 8

2014-09-10 Thread Daniel Bastos
I have not been able to verify this statement. "As a matter of fact, the functions of section 19 violate the Scheme grammar of section 8." -- First paragraph of section 20. I think the statement is referring to functions such as filter1. (define (filter1 rel-op alon t) (cond [(empty? alo