Re: [racket] Code Error Creating List

2011-05-17 Thread Matthias Felleisen
Todd D: 1. This code must be the worst formatted Racket code I have seen in a long time. Please read EOPL and follow its example. 2. Next, when DrRacket tells you that a particular sub-expression in your program raised an error, please -- pretty please -- pay attention. I removed the superf

Re: [racket] Code Error Creating List

2011-05-17 Thread Todd Dobmeyer
Todd Thanks, you are definitely making me think, but I don't see what would be wrong with what I am trying. The first thing I tried was to remove free-vars and just call free-vars-list directly and change the case of (var-exp (id) id) to (var-exp (id) (list id)) ;; in this example id == x s

Re: [racket] Code Error Creating List

2011-05-17 Thread Todd O'Bryan
I apologize in advance for not actually reading through your code beyond the point where it began using constructs that I'm not familiar with, but I will give some advice that may or may not be helpful. You're trying to return '(x). What you're actually returning is (x)--an application of the valu

[racket] Code Error Creating List

2011-05-17 Thread Todd Dobmeyer
I am taking a class at Wright State University and we are working on problem 3.27 from the EOPL 2nd Edition. This problem has us modifying the closure procedure to only bind the free variables in our environment instead of storing all the variables. I am trying to write some code that will crea

Re: [racket] Question about reading string on a file

2011-05-17 Thread Danny Yoo
>  I want to write an A-List on a file "Diary.txt" , this A-list contains > couples of a symbol and a string. Example : '((17/05/2011 "Hello guys") > (18/05/2011 "good morning")) . > But I have a problem when I read this A-List from the file with the function > (read p-in), it transforms strings to

Re: [racket] rackunit positive feedback

2011-05-17 Thread Grant Rettke
On Tue, May 17, 2011 at 10:27 AM, Russell Adams wrote: > > > On Tue, May 17, 2011 at 10:35:26AM -0400, Matthias Felleisen wrote: >> >> (test/gui test-suite) > > That's nice, but who uses a gui? Lol we use a gui at work for the business analysts to run acceptance tests... not in Racket though ;).

Re: [racket] rackunit positive feedback

2011-05-17 Thread Russell Adams
On Tue, May 17, 2011 at 08:39:45AM -0600, Ryan Culpepper wrote: > Save the old check-around handler: > > (define base-check-around (current-check-around)) > > The new handler will call the thunk (ie, run the check), and if the > check succeeds (ie, does not raise an exception), then it prints out

Re: [racket] rackunit positive feedback

2011-05-17 Thread Robby Findler
On Tue, May 17, 2011 at 10:27 AM, Russell Adams wrote: > > > On Tue, May 17, 2011 at 10:35:26AM -0400, Matthias Felleisen wrote: >> >> (test/gui test-suite) > > That's nice, but who uses a gui? I believe Ryan offered to add something to add this functionality to the text interface. Robby ___

Re: [racket] Fwd: URLs in slideshows

2011-05-17 Thread Rodolfo Carvalho
It worked! #lang slideshow (require (only-in browser/external send-url)) (slide #:title "FizzBuzz" (clickback (tt "Racket home") (λ () (send-url "http://racket-lang.org"; Well, not that I am in the need, but how would I go about to make clickable URLs in PDF files? If that is possible,

Re: [racket] rackunit positive feedback

2011-05-17 Thread Eric Hanchrow
On Tue, May 17, 2011 at 6:06 AM, Matthew Flatt wrote: > I think we would want to implement it as a `#lang' mix-in > >  #lang testable racket That sounds _great_. _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/use

Re: [racket] Fwd: URLs in slideshows

2011-05-17 Thread Matthew Flatt
There's not currently a clickable-URL function provided with Slideshow. You'd have to use a combination of `clickback' and `send-url', and it would only work when running the show (as opposed to PDF output from printing the slides). At Tue, 17 May 2011 12:23:36 -0300, Rodolfo Carvalho wrote: > How

Re: [racket] rackunit positive feedback

2011-05-17 Thread Russell Adams
On Tue, May 17, 2011 at 10:35:26AM -0400, Matthias Felleisen wrote: > > (test/gui test-suite) That's nice, but who uses a gui? -- Russell Adamsrlad...@adamsinfoserv.com PGP Key ID: 0x1160DCB3

[racket] Fwd: URLs in slideshows

2011-05-17 Thread Rodolfo Carvalho
How do I write URLs with hyperlinks in a slideshow? I tried something like: (require (only-in scribble/base url)) (slide #:title "Want more?" (t (url "http://racket-lang.org";))) => but it is a "contract violation"... []'s Rodolfo Carvalho (PS: previous message was waiting for moderation b

Re: [racket] rackunit positive feedback

2011-05-17 Thread Ryan Culpepper
On 05/17/2011 06:12 AM, Russell Adams wrote: On Mon, May 16, 2011 at 11:34:39PM -0600, Ryan Culpepper wrote: On 05/16/2011 09:38 PM, Russell Adams wrote: Folks, I'm incredibly pleased with rackunit, having just used it on a funky piece of parsing code, however I encountered a minor issue. For

Re: [racket] rackunit positive feedback

2011-05-17 Thread Matthias Felleisen
(test/gui test-suite) On May 17, 2011, at 10:14 AM, Russell Adams wrote: > On Tue, May 17, 2011 at 07:40:14AM -0500, Robby Findler wrote: >>> I had tried run-tests with 'verbose, and define-test-suite. I really >>> just have a file full of checks currently, I didn't need the case or >>> suite

Re: [racket] rackunit positive feedback

2011-05-17 Thread Russell Adams
On Tue, May 17, 2011 at 07:40:14AM -0500, Robby Findler wrote: > > I had tried run-tests with 'verbose, and define-test-suite. I really > > just have a file full of checks currently, I didn't need the case or > > suite functionality yet. > > > (not to be a pita, but maybe you do! :) > > Robby I di

Re: [racket] rackunit positive feedback

2011-05-17 Thread Eli Barzilay
40 minutes ago, Matthew Flatt wrote: > At Tue, 17 May 2011 08:57:26 -0400, Matthias Felleisen wrote: > > > > While we're at it: any chance of getting a test-on-entry-point for > > Rackunit as I described a while ago is available in Python? > > I think we would want to implement it as a `#lang' mi

Re: [racket] rackunit positive feedback

2011-05-17 Thread Matthias Felleisen
YES! That would also solve the problems with Kathy's test engine. Indeed, we could just replace test engine with rackunit in *sl. -- Matthias On May 17, 2011, at 9:06 AM, Matthew Flatt wrote: > At Tue, 17 May 2011 08:57:26 -0400, Matthias Felleisen wrote: >> >> While we're at it: any chance o

Re: [racket] rackunit positive feedback

2011-05-17 Thread Matthew Flatt
At Tue, 17 May 2011 08:57:26 -0400, Matthias Felleisen wrote: > > While we're at it: any chance of getting a test-on-entry-point for Rackunit > as > I described a while ago is available in Python? I think we would want to implement it as a `#lang' mix-in #lang testable racket ... where `te

Re: [racket] rackunit positive feedback

2011-05-17 Thread Matthias Felleisen
While we're at it: any chance of getting a test-on-entry-point for Rackunit as I described a while ago is available in Python? -- Matthias _ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

Re: [racket] rackunit positive feedback

2011-05-17 Thread Matthias Felleisen
On May 17, 2011, at 8:12 AM, Russell Adams wrote: > I didn't need the case or suite functionality yet. You did. That's what your long post says, but you probably didn't realize it. -- Matthias _ For list-related administrative tasks: http:/

Re: [racket] rackunit positive feedback

2011-05-17 Thread Robby Findler
On Tue, May 17, 2011 at 7:12 AM, Russell Adams wrote: > On Mon, May 16, 2011 at 11:34:39PM -0600, Ryan Culpepper wrote: >> On 05/16/2011 09:38 PM, Russell Adams wrote: >> >Folks, >> > >> >I'm incredibly pleased with rackunit, having just used it on a funky >> >piece of parsing code, however I enco

Re: [racket] rackunit positive feedback

2011-05-17 Thread Russell Adams
On Mon, May 16, 2011 at 11:34:39PM -0600, Ryan Culpepper wrote: > On 05/16/2011 09:38 PM, Russell Adams wrote: > >Folks, > > > >I'm incredibly pleased with rackunit, having just used it on a funky > >piece of parsing code, however I encountered a minor issue. > > > >For all the checks I'm doing, it

Re: [racket] Question about reading string on a file

2011-05-17 Thread Jos Koot
Are you sure you output the A-list in write-mode? Using display (or (printf "~a" A-list)) would give you exactly the output you describe. You may want to use symbol? and string? in order to inspect the input. Jos _ From: users-boun...@racket-lang.org [mailto:users-boun...@racket-lang.org

[racket] Question about reading string on a file

2011-05-17 Thread jimmy dura
Hello, i am a french student, sorry for my english. My problem is : I want to write an A-List on a file "Diary.txt" , this A-list contains couples of a symbol and a string. Example : '((17/05/2011 "Hello guys") (18/05/2011 "good morning")) . But I have a problem when I read this A-List from th

Re: [racket] Getting started with R6RS

2011-05-17 Thread Andreas Rottmann
Elliott Cable writes: > On Sat, May 14, 2011 at 9:34 AM, Sam Tobin-Hochstadt > wrote: >> 1. You won't be able to put these in a single file and have it work. >> That's probably what's causing your problem.  The R6RS doesn't specify >> how libraries and top-level programs map to the file system.

Re: [racket] future on dual processor machine

2011-05-17 Thread Jos Koot
Thanks, I patiently await the fix. I am not in a hurry. Thanks for keeping me posted, Jos _ From: users-boun...@racket-lang.org [mailto:users-boun...@racket-lang.org] On Behalf Of James Swaine Sent: 17 May 2011 07:02 To: users@racket-lang.org Subject: Re: [racket] future on dual processo