[CM] define* and :rest bug

bil at ccrma.Stanford.EDU bil at ccrma.Stanford.EDU
Fri Jul 30 12:46:41 PDT 2021


But then what would

   (my-apply + 1 2 3 :debug #t 4 5 6)

expect? Perhaps this would be usable:

(define-macro* (my-apply debug :rest rest)
   `(if (not (boolean? ,debug))
        (apply ,debug ',rest)
        (begin
	 (when ,debug
	   (format *stderr* "debugging\n"))
	 (apply ,(car rest) ',(cdr rest)))))





More information about the Cmdist mailing list