Re: [racket] FFI for ncurses

2011-11-30 Thread Jay McCarthy
I wrote a partial one once https://github.com/jeapostrophe/rl/tree/master/exp/ncurses On Wed, Nov 30, 2011 at 4:15 PM, Russell Adams wrote: > I've seen a few references to using FFI to access ncurses, but there's > no module available on Planet. > > Does someone have one to share? > > Thanks. >

[racket] FFI for ncurses

2011-11-30 Thread Russell Adams
I've seen a few references to using FFI to access ncurses, but there's no module available on Planet. Does someone have one to share? Thanks. -- Russell Adamsrlad...@adamsinfoserv.com PGP Key ID: 0x1

Re: [racket] MysterX error message

2011-11-30 Thread Ben Goetter
My first guess would be a damaged installation of AutoCAD. Alternately, edit src/mysterx/mysterx.cxx and remove lines 4347 through 4357 (helpfully bracketed by #ifndef _WIN64), then rebuild. Worth a try, anyway. On 11/29/2011 10:27 PM, José Lopes wrote: Hello, I have a 32 bit systems so bo

Re: [racket] has contract-out been renamed?

2011-11-30 Thread Dan Grossman
Thanks greatly for the quick response. By the way, the documentation in 7.5.2 says, "This module exports the entire structure definition: posn, posn?, posn-x, posn-y, set-posn-x!, and set-posn-y!." but structs no longer define mutators by default. --Dan On Wed, Nov 30, 2011 at 10:18 AM, Carl E

Re: [racket] has contract-out been renamed?

2011-11-30 Thread Carl Eastlund
On Wed, Nov 30, 2011 at 1:09 PM, Dan Grossman wrote: > DrRacket version 5.1.3: > > file contents: > > #lang racket > (provide (contract-out (x integer?))) > (define x 3) > > run result: > > contract-out: not a provide sub-form in: (contract-out (x integer?)) > > Do I need to upgrade to 5.2? Yes,

[racket] has contract-out been renamed?

2011-11-30 Thread Dan Grossman
DrRacket version 5.1.3: file contents: #lang racket (provide (contract-out (x integer?))) (define x 3) run result: contract-out: not a provide sub-form in: (contract-out (x integer?)) Do I need to upgrade to 5.2? (I'm following the documentation at http://docs.racket-lang.org/guide/contract-b

Re: [racket] parser-tools help

2011-11-30 Thread Marijn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Timothy, On 30-11-11 15:14, Timothy Nelson wrote: > Hi Marijn, > > Two quick points: > > (1) The parser works with token structs, not symbols. Whenever you > declare a token, a cooresponding "token-" form is made > available to you when using lex

Re: [racket] typo in HtDP

2011-11-30 Thread Matthias Felleisen
On Nov 29, 2011, at 6:55 PM, Bloch Stephen wrote: > > On Nov 29, 2011, at 4:31 PM, David Van Horn wrote: > >> On 11/29/11 4:28 PM, Jakub Hadam wrote: >>> Hello, >>> I claim there is a typo in the online version of HtDP: >>> Exercise 4.3.3, the first condition should be >>> >>> [(<= n 1000) (

Re: [racket] parser-tools help

2011-11-30 Thread Marijn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 30-11-11 14:33, Marijn wrote: > Hi, > > I'm trying to use the parser-tools to parse the startup info for > the Google AI Challenge, but I am not sure what I'm doing wrong. I managed to get my code working, see below. (BTW parser gives a really sil

Re: [racket] parser-tools help

2011-11-30 Thread Eli Barzilay
40 minutes ago, Sam Tobin-Hochstadt wrote: > To answer the most insignificant part of your email: > > On Wed, Nov 30, 2011 at 8:33 AM, Marijn wrote: > > Finally, do racket's here-strings support indented format like > > bash's here-strings do? > > No, but if you use the Scribble `at-exp' reader

Re: [racket] parser-tools help

2011-11-30 Thread Sam Tobin-Hochstadt
To answer the most insignificant part of your email: On Wed, Nov 30, 2011 at 8:33 AM, Marijn wrote: > Finally, do racket's here-strings > support indented format like bash's here-strings do? No, but if you use the Scribble `at-exp' reader [1], it supports this: The Scribble syntax treats spac

[racket] parser-tools help

2011-11-30 Thread Marijn
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm trying to use the parser-tools to parse the startup info for the Google AI Challenge, but I am not sure what I'm doing wrong. As a secondary question, given the repetitive nature of the code, how would one use macros to make it better? Finally

Re: [racket] exercise 6.6.3 htdp

2011-11-30 Thread Matthias Felleisen
On Nov 30, 2011, at 7:11 AM, frank weytjens wrote: > (define (in-circle? C pos) > (> (cirkel-number C) (distance-to-center C pos))) If a math teacher asked you to determine whether a point was (strictly) within a circle, he'd write |p - c| < r Somewhere else he'd define

[racket] exercise 6.6.3 htdp

2011-11-30 Thread frank weytjens
(define H 300) (define L 300) (define-struct cirkel (posn number color)) (define cirkel1 (make-cirkel(make-posn (/ H 2) (/ L 2)) (/ L 4) 'red)) ;; fun-for-circle: circle --> ? ;;(define (fun-for-circle circle) ...) ;;(define (fun-for-circle c) ;;(draw-solid-disk (cirkel-posn c)(cirkel-number c) (ci