Re: [racket-users] Code in The Seasoned Schemer not accessible from REPL in Geiser or Dr. Racket

2016-11-08 Thread Matthias Felleisen
The proper way to reproduce the code is to enter the abbreviations for the TSS-specific functions and to ‘copy’ the code unaltered: #lang racket (define atom? symbol?) (define t #true) (define-syntax-rule (letcc k e) (call/cc (lambda (k) e))) (define rember1* (lambda (a l) (letrec

Re: [racket-users] Code in The Seasoned Schemer not accessible from REPL in Geiser or Dr. Racket

2016-11-08 Thread Vincent St-Amour
Ian, `oh` is indeed unbound inside the call to `call/cc`. `oh` is only bound within the body of the `lambda` that is on the right-hand side of the `letrec`; it is not bound in the body of the `letrec`, which is where the call to `call/cc` is. I don't have my copy of TSS handy. Did you make a

[racket-users] Code in The Seasoned Schemer not accessible from REPL in Geiser or Dr. Racket

2016-11-08 Thread Ian Thomas
Hello list, I've been working through The Seasoned Schemer and have come across code that I can't access in the Racket REPL: specifically, the version of rember1* shown on p. 139 of the 17th chapter. I'm not sure why there is a complaint about the 'oh' variable being unbound in the last let