Bugs in printf?



Volker van Nek wrote:
> Ray,
>
> this is cool! I didn't know that this specification exists. 
> But unfortunately it doesn't seem to be implemented in GCL.
>
> OK with CLISP:
>
> MAXIMA> (defun bf (&rest args) (format t "~a" args))
> BF
> MAXIMA> (format t "abc~/maxima::bf/abc~%" 42)
> abc(#<IO SYNONYM-STREAM *TERMINAL-IO*> 42 NIL NIL)abc
> NIL
>
> But with GCL:
> MAXIMA> (defun bf (&rest args) (format t "~a" args))
>
> BF
> MAXIMA> (format t "abc~/maxima::bf/abc~%" 42)
>
> abc
> Maxima encountered a Lisp error:
>
>  Error in FORMAT [or a callee]: Format error: illegal directive.
>      V
> "abc~/maxima::bf/abc~%"
>
> Or am I doing something wrong?
Too bad.  I poked around the gcl source code and it seems format is
implemented in C, so we can't easily fix gcl to recognize ~/. 

It was a nice idea while it lasted. :-(

Ray