Just started doing some Lisp a few minutes ago. Trying to figure out why this program won't work properly. I am using SBCL and want to prompt user, read input, then print the statement.
(defun SayHello()
(princ "What is your name? ")
(let ((name (read))))
(princ "Hello: ")
(princ name))
When I run this I receive these warnings:
; caught WARNING:
; undefined variable: COMMON-LISP-USER::NAME
;
; compilation unit finished
; Undefined variable:
; NAME
; caught 1 WARNING condition