Re: [racket] newbie drracket usage questions

2012-07-30 Thread D Herring
On 07/31/2012 01:15 AM, Richard Cleis wrote: On Jul 30, 2012, at 10:53 PM, D Herring wrote: Hi, How would one accomplish the following in DrRacket? "apropos" (CL/shell) or "lookfor" (Matlab) Given a search string, return a list of symbols with matching name or documentation. I found that XR

Re: [racket] newbie drracket usage questions

2012-07-30 Thread Richard Cleis
On Jul 30, 2012, at 10:53 PM, D Herring wrote: > Hi, > > How would one accomplish the following in DrRacket? > > "apropos" (CL/shell) or "lookfor" (Matlab) > Given a search string, return a list of symbols with matching name or > documentation. > I found that XRepl has the ,apropos command; bu

[racket] newbie drracket usage questions

2012-07-30 Thread D Herring
Hi, How would one accomplish the following in DrRacket? "apropos" (CL/shell) or "lookfor" (Matlab) Given a search string, return a list of symbols with matching name or documentation. I found that XRepl has the ,apropos command; but I haven't figured out an easy way to invoke it in DrRacket.

[racket] Strange error with OpenGL in Windows XP

2012-07-30 Thread Tomás Coiro
I have version 5.2.1 for windows 32-bit I'm trying to make an OpenGL program for a roguelike, so, I'm trying to get a frame that can be updated and interacted with. The problem is that after i practically copied gl-frame and gears to get a canvas class going and started trying simple drawing,

Re: [racket] Tabulate from build-list

2012-07-30 Thread Matthias Felleisen
Here is how I suggest our freshmen to find this function: ;; tabulate : (x -> y) Nat -> (listof y) ;; <--- MF: not fix of signature ;; to tabulate f between n ;; and 0 (inclusive) in a list (check-expect (tabulate (lambda (x) x) 3) '(3 2 1 0)) (define (tabulate.v0 f n) (cond [(= n 0)

[racket] Tabulate from build-list

2012-07-30 Thread Sean Kemplay
Hello, I am looking at the exercise from htdp 1e on building the tabulate function from build-list. Would I be on the right track that I need to create a function to reverse the result of (build-list (+ n 1) f) to do this? the function this is to emulate - ;; tabulate : (x -> y) x -> (listof y

Re: [racket] Checking for exceptions in RackUnit

2012-07-30 Thread Gregory Woodhouse
Thanks. On Jul 30, 2012, at 12:16 PM, David Van Horn wrote: > check-exn should take a thunk as the second argument. I think you want: > > (test-begin > (define x (new grid%)) > (check-exn exn:fail? >(lambda () > (send x set-cell! 1 1 1) > (send x set-cell!

Re: [racket] Checking for exceptions in RackUnit

2012-07-30 Thread David Van Horn
On 7/30/12 3:13 PM, Gregory Woodhouse wrote: Okay, here's another question related to my little Sudoku project. Before I decided to switch to using rackunit for runit tests, I had a unit test that looked like this (define (test3) (let ([val 'fail] [g (new grid%)]) (with-h

[racket] Checking for exceptions in RackUnit

2012-07-30 Thread Gregory Woodhouse
Okay, here's another question related to my little Sudoku project. Before I decided to switch to using rackunit for runit tests, I had a unit test that looked like this (define (test3) (let ([val 'fail] [g (new grid%)]) (with-handlers ([exn:fail? (lambda (exn) (set! val 'pass))

[racket] CFP IFL 2012

2012-07-30 Thread Marco Morazan
Dear All, Please consider submitting a talk and/or presentation to IFL 2012. Submissions will be accepted until Wednesday. The CFP is below. -- Cheers, Marco Have a´¨) ¸.·´¸.·*´¨) ¸.·*¨) (¸.·´ (¸.·´ * wonderful day! :)