Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

formatter bug #438

Closed
vibs29 opened this issue Feb 12, 2023 · 0 comments
Closed

formatter bug #438

vibs29 opened this issue Feb 12, 2023 · 0 comments
Assignees

Comments

@vibs29
Copy link

vibs29 commented Feb 12, 2023

[cross-posted to clisp mailing list, where bug has now been fixed]

(defun s (fillp)
  (make-array 1 :element-type 'character :initial-contents "x"
              :fill-pointer fillp))
(defun fmt (fillp)
  (format nil (eval `(formatter ,(s fillp)))))
(fmt nil) ;ok
(fmt t)   ;error due to base-string instead of simple-string
#|
CLISP: fails
CCL:   fails
CMUCL: passes
SBCL:  passes
ECL:   passes
ABCL:  passes
|#

http://www.lispworks.com/documentation/HyperSpec/Body/m_format.htm#formatter
says the formatter macro's arg is a "format string".
http://www.lispworks.com/documentation/HyperSpec/Body/26_glo_f.htm#format_string
defines "format string" to be a string and doesn't restrict it to any particular subtype.

@xrme xrme self-assigned this May 19, 2024
@xrme xrme closed this as completed in 660d032 May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants