2012/6/8 Sam Tobin-Hochstadt <[email protected]>:

> What's happening is that `#%top` behaves differently at the REPL than
> in a module.  This enables you to write:
>
> -> (define (even? x) (or (zero? x) (odd? (sub1 x))))
> -> (define (odd? x) (or (= x 1) (even? (sub1 x))))
>
> without getting an error when entering the first line.

Ah!

Thanks,
Jens Axel

____________________
  Racket Users list:
  http://lists.racket-lang.org/users

Reply via email to