[Bug-openmcl] #\+ in format directives patch

Gary Byers gb at clozure.com
Wed Dec 8 00:34:21 MST 2004



On Tue, 7 Dec 2004, bryan o'connor wrote:

> i didn't find exactly where the spec says that digits in format
> strings can be written with a sign when positive, but the ansi
> test suite was updated recently to check for it..  regardless,
> it's probably a good thing to allow.

The 8th paragraph of 22.3 says:

"... prefix parameters are noted as signed (sign is optional) ...",
so I think that the test suite is correct in complaining about this.

>
> current behavior --
>
> ? (format nil "~10D" 300)
> "       300"
> ? (format nil "~-10D" 300)
> "300"
>
> patch adds this --
>
> ? (format nil "~+10D" 300)
> "       300"
>
>
>
> 	...bryan
>
>
>


More information about the Bug-openmcl mailing list