Ticket #1033 (closed defect: fixed)

Opened 20 months ago

Last modified 20 months ago

#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

comment:1 Changed 20 months ago by gb

  • Status changed from new to closed
  • Resolution set to fixed

(In [15527]) PRINT-OBJECT on RATIO: print radix when *PRINT-RADIX*, even if *PRINT-BASE* is 10.

Fixes ticket:1033 in the trunk.

Note: See TracTickets for help on using tickets.