Newbie problem - defun
Posted: Mon Nov 10, 2014 4:36 pm
Following is from my CCL REPL:
I'm obviously missing something REALLY basic, but I just don't see it:(
Thanx - Charlie
Code: Select all
? (defun my-half (x)
(* (x 0.5)))
;Compiler warnings :
; In MY-HALF: Undefined function X
; In MY-HALF: Unused lexical variable X
MY-HALF
? (my-half 8)
> Error: Undefined function X called with arguments (0.5) .
> While executing: MY-HALF, in process Listener(4).
> Type cmd-/ to continue, cmd-. to abort, cmd-\ for a list of available restarts.
> If continued: Retry applying X to (0.5).
> Type :? for other options.
1 > q
?
Thanx - Charlie