[Openmcl-devel] Minor bug: format "~@?" and "~:*" don't work together

Scott L. Burson Scott at sympoiesis.com
Tue Dec 27 23:09:55 PST 2011


I was printing a list of counts of things, some of which were nouns
and therefore needed to be pluralized, others of which were adjectives
and therefore needed not to be pluralized.  To handle this I created a
list of format strings which I invoked from a main format string using
"~@?".  So I wound up effectively doing something like this:

  (format nil "~D ~@?" n "frob~2:*~P")

which should return "1 frob" if n is 1, and "2 frobs" if n is 2 (etc.).

This works fine in SBCL, Allegro, and LispWorks, but not CCL; CCL
gives a "missing argument" error on the "~P".

This is not important to me, but I thought you might want to know.

-- Scott



More information about the Openmcl-devel mailing list