Ticket #1033 (closed defect: fixed)
#10r prefix is omitted for printing ratios when *print-radix* is true
| Reported by: | matt.kaufmann | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | ANSI CL Compliance | Version: | trunk |
| Keywords: | *print-radix* | Cc: |
Description
The CL HyperSpec? says of *print-radix*:
For integers, base ten is indicated by a trailing decimal point instead of a leading radix specifier; for ratios, #10r is used.
Yet CCL omits the leading "#10r" in the example shown below. I did the same test in Allegro CL, CLISP, CMUCL, GCL, Lispworks, and SBCL, and each of those printed "#10r4/5" rather than "4/5".
Welcome to Clozure Common Lisp Version 1.9-dev-r15503M-trunk (LinuxX8664)! ? (setq *print-base* 10 *print-radix* t) T ? 4/5 4/5 ?
Change History
Note: See
TracTickets for help on using
tickets.
