Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Is SBCL retarded?

Name: Anonymous 2013-02-09 13:25

or am i just doing something wrong?


(defmacro test (&body c)
  `(progn ,(test2 c)))

(defmacro test2 (&body c)
  (format t "~A~%" c)
  `(progn (car ,c) ,@c))


test2 compiles just fine
upon trying to compile test i get:

; in: DEFMACRO TEST
;     COMMON-LISP::C
;
; caught STYLE-WARNING:
;   undefined function: C
;
; compilation unit finished
;   Undefined function:
;     C
;   caught 1 STYLE-WARNING condition



How the fuck does it see C as a function when it's clearly in the argument position for test2?

Name: Anonymous 2013-02-09 13:55

>>1
Because C in `(progn ,(test2 c))) isn't bound to outer's C value, but passed as symbol C.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List