Re: [racket-users] Pict circle radius

2015-07-25 Thread Robby Findler
Yeah, it's confusing. :( Robby On Sat, Jul 25, 2015 at 10:22 PM, Jack Firth wrote: > Indeed it turns out I was missing something embarrassingly obvious. I was > looking at the docs for the 2htdp/image functions, but using the pict > functions. -- You received this message because you are sub

Re: [racket-users] Pict circle radius

2015-07-25 Thread Jack Firth
Indeed it turns out I was missing something embarrassingly obvious. I was looking at the docs for the 2htdp/image functions, but using the pict functions. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop r

Re: [racket-users] Pict circle radius

2015-07-25 Thread Robby Findler
Where do you see that documentation? This seems to say "diameter": http://docs.racket-lang.org/pict/Basic_Pict_Constructors.html?q=circle#%28def._%28%28lib._pict%2Fmain..rkt%29._circle%29%29 Robby On Sat, Jul 25, 2015 at 9:49 PM, Jack Firth wrote: > So the documentation says that (circle 100) p

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

2015-07-25 Thread Jack Firth
On Monday, July 20, 2015 at 5:03:55 PM UTC-7, Jack Firth wrote: > I'm trying to create a way to automatically turn test cases into examples. > I'd like a macro that turns this: > > (extract-expressions > (module+ test >(check-equal? (extract-expression (square 5)) 25) >(check-equal? (ext

[racket-users] Pict circle radius

2015-07-25 Thread Jack Firth
So the documentation says that (circle 100) produces a circle with radius 100. However, (pict-width (circle 100)) produces 100 instead of 200, so apparently it's a circle with diameter 100 and radius 50? Is this a misdocumented function, or am I missing something embarrassingly obvious? -- You

Re: [racket-users] Correction: Half-life was *not* written in a Lisp after all.

2015-07-25 Thread Joel McCracken
Crash bandicoot is the one example I know. Is that what you were thinking of? Sent from my iPhone > On Jul 25, 2015, at 8:02 AM, Hendrik Boom wrote: > >> On Sat, Jul 25, 2015 at 12:04:07AM +, John Carmack wrote: >> Half-life was written in C on my Quake 1 codebase. > > Thank you for the co

Re: [racket-users] Scribble: referencing struct fields

2015-07-25 Thread Matthew Flatt
At Thu, 23 Jul 2015 15:07:53 -0700, Jordan Johnson wrote: > What are the appropriate function and the preferred practice for referring to > struct fields in a Scribble document? For example, if I’m writing the > defstruct* body text and want to say, “the x field is intended for blah blah > blah”

Re: [racket-users] Re: Extending list-box functionality

2015-07-25 Thread Matthew Flatt
At Thu, 23 Jul 2015 19:57:52 -0700 (PDT), copycat wrote: > On Thursday, July 23, 2015 at 2:50:37 PM UTC+8, copycat wrote: > > With a list box, i can select multiple items by holding onto my mouse and > dragging. I'll like to add on other features to the list box like being able > to drag the rows

Re: [racket-users] Scribble undefined tags

2015-07-25 Thread Matthew Flatt
Do the broken references show up when rendering docs with `raco setup` or `raco pkg {install,update}`, or do they show up when running `scribble` directly on the ".scrbl" file? If it's the latter, then that makes sense. When you refer to a module through a filesystem path, Scribble doesn't try to

Re: [racket-users] Prebuilt Android NDK racket?

2015-07-25 Thread Matthew Flatt
At Sat, 25 Jul 2015 19:58:05 +, John Carmack wrote: > Anyone got one handy? Lazily attempting to avoid the day of frustration that > usually comes from touching anyone else's NDK project... Untested, but possibly useful: http://www.cs.utah.edu/~mflatt/tmp/racket-6.2-arm-android-19-in-place

[racket-users] Prebuilt Android NDK racket?

2015-07-25 Thread John Carmack
Anyone got one handy? Lazily attempting to avoid the day of frustration that usually comes from touching anyone else's NDK project... -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails fro

Re: [racket-users] Correction: Half-life was *not* written in a Lisp after all.

2015-07-25 Thread Michael Titke
On 25/07/2015 14:02, Hendrik Boom wrote: On Sat, Jul 25, 2015 at 12:04:07AM +, John Carmack wrote: Half-life was written in C on my Quake 1 codebase. Thank you for the correction. Now I get to wonder what the truth behind the rumour was. Evidently not half-life. -- hendrik There is so

Re: [racket-users] Affecting the errors generated by syntax-parse

2015-07-25 Thread Jens Axel Søgaard
Hi Stephen, Thanks for testing this. Turns out I had removed a #:opaque in Definition while cleaning up the example before sending the mail. Now I get the same error as you. With (define-syntax-class Definition #:opaque #:literals (define) (pattern (define (name:Id a:Id ...) body:Body)))

Re: [racket-users] Affecting the errors generated by syntax-parse

2015-07-25 Thread Stephen Chang
Actually, I dont get the "begin expected" error that you mention. I'm getting: define: expected identifier parsing context: while parsing Id while parsing Definition while parsing TopLevelForm in: 4 with the 4 highlighted, which seems correct since it comes from using the Definition cl

Re: [racket-users] Affecting the errors generated by syntax-parse

2015-07-25 Thread Stephen Chang
I haven't played with the example in detail, but do you want the cut operator here? http://docs.racket-lang.org/syntax/stxparse-patterns.html?q=syntax-parse#%28form._%28%28lib._syntax%2Fparse..rkt%29._~7e!%29%29 On Sat, Jul 25, 2015 at 9:55 AM, Jens Axel Søgaard wrote: > Hi All, > > The syntax-p

[racket-users] Affecting the errors generated by syntax-parse

2015-07-25 Thread Jens Axel Søgaard
Hi All, The syntax-parse form can often generate sensible errors based on the progress made during the attempt to match a pattern against a syntax-object. Given multiple choices the choice where the "maximum" progress was made is used to generate the error message. Is there a way to tell syntax-p

[racket-users] Correction: Half-life was *not* written in a Lisp after all.

2015-07-25 Thread Hendrik Boom
On Sat, Jul 25, 2015 at 12:04:07AM +, John Carmack wrote: > Half-life was written in C on my Quake 1 codebase. Thank you for the correction. Now I get to wonder what the truth behind the rumour was. Evidently not half-life. -- hendrik -- You received this message because you are subscrib