[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: format bug
- To: <clisp-list@ma2s2.mathematik.uni-karlsruhe.de>
- Subject: Re: format bug
- From: Marcus Daniels <marcus@sysc.pdx.edu>
- Date: 11 Dec 1996 19:57:18 -0800
- In-reply-to: "Tobias Kunze"'s message of Thu, 12 Dec 96 04:09:46 +0100
- References: <9612111907.ZM1297@ulysses.stanford.edu>
>>>>> "TK" == Tobias Kunze <tkunze@ulysses.stanford.edu> writes:
TK> The examples on page 585 of CLtL2 don't work:
| > (format nil "~,,' ,4b" #xface)
| "1111101011001110"
| NIL
I'm not so sure the examples are right, note that CLtL2 does say:
"The : modifier causes commas to be printed between groups of three digits."
and in dpANS I don't see this particular example; the similiar
examples all use the `:'.
CLISP does obey the `:':
> (format nil "~,,' ,4:B" #xface)
"1111 1010 1100 1110"
I think if the fourth parameter implied a `:', it would be
a nuisance if format strings were being generated by a program.
- References:
- format bug
- From: "Tobias Kunze" <tkunze@ulysses.stanford.edu>