cisco / ChezScheme

Chez Scheme
Apache License 2.0
6.99k stars 987 forks source link

Bug in V format prefix parameter #840

Closed olopierpa closed 5 months ago

olopierpa commented 5 months ago

Hello,

the CSUG says: "Chez Scheme's implementation of format supports all of the Common Lisp format directives except for those specific to the Common Lisp pretty printer."

The CLHS says: "In place of a prefix parameter to a directive, V (or v) can be used." https://www.lispworks.com/documentation/lw60/CLHS/Body/22_c.htm

However,

> (format #f "~vA" 10 10)
"10        "
> (format #f "~VA" 10 10)
Exception in format: unrecognized directive ~V
Type (debug) to enter the debugger.
burgerrg commented 5 months ago

Fixed in https://github.com/cisco/ChezScheme/pull/843. Thank you for finding and fixing this!