WARN should accept FORMAT-like arguments.
authorOlof-Joachim Frahm <olof@macrolet.net>
Wed, 21 Aug 2013 18:03:51 +0000 (20:03 +0200)
committerOlof-Joachim Frahm <olof@macrolet.net>
Thu, 29 Aug 2013 10:48:41 +0000 (12:48 +0200)
src/print.lisp

index a540357..004b540 100644 (file)
   (terpri)
   x)
 
-(defun warn (string)
+(defun warn (fmt &rest args)
   (write-string "WARNING: ")
-  (write-line string))
+  (apply #'format t fmt args)
+  (terpri))
 
 (defun print (x)
   (write-line (prin1-to-string x))