Re: [racket] Trace rejects set!

2011-10-10 Thread michael rice
Thanks, Vincent. I didn't know traces had to be in the program itself. Michael From: Vincent St-Amour To: michael rice Cc: Vincent St-Amour ; Racket Users Sent: Monday, October 10, 2011 1:49 PM Subject: Re: [racket] Trace rejects set! At Mon, 10 Oct

Re: [racket] Trace rejects set!

2011-10-10 Thread Vincent St-Amour
At Mon, 10 Oct 2011 10:31:39 -0700 (PDT), michael rice wrote: > > Welcome to DrRacket, version 5.1.3 [3m]. > Language: racket; memory limit: 128 MB. > > (trace next-leaf-generator) > set!: cannot modify a constant: next-leaf-generator Try adding `(trace next-leaf-generator)' to the program itself

Re: [racket] Trace rejects set!

2011-10-10 Thread Vincent St-Amour
At Mon, 10 Oct 2011 10:09:49 -0700 (PDT), michael rice wrote: > I'm looking at some old Scheme code and find that the code still > works under (#lang racket) but trace is unhappy with  the use of set! > in the traced function. > > set!: cannot modify a constant: next-leaf-generator I added `(trac

[racket] Trace rejects set!

2011-10-10 Thread michael rice
I'm looking at some old Scheme code and find that the code still works under (#lang racket) but trace is unhappy with  the use of set! in the traced function. set!: cannot modify a constant: next-leaf-generator  I also tried (#lang r5rs) but  it's unhappy with my require. (require racket/trac