[racket] Error when pasting code
When running the following code, when manually typed in, there is no error. However, when the same is pasted from the keyboard buffer, the error indicated appears.
Comments?
Thanks, Steve
===
C:\Users\Steve>racket
Welcome to Racket v6.0.1.;; Typed in
> (define (tarai x y z)
(if (<= x y)
y
(tarai (tarai (- x 1) y z)
(tarai (- y 1) z x)
(tarai (- z 1) x y))))
> (time (tarai 12 6 0))
cpu time: 265 real time: 271 gc time: 0
12
>
===
C:\Users\Steve>racket
Welcome to Racket v6.0.1.
;; Pasted in> (define (tarai x y z)
(if (<= x y)
y
(tarai (tarai (- x 1) y z)
(tarai (- y 1) z x)
(tarai (- z 1) x y))))
> (time (tarai 12 6 0))
R: undefined;
cannot reference undefined identifier
> (tarai 12 6 0)
R: undefined;
cannot reference undefined identifier
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20150317/e117ba2f/attachment-0001.html>