Opened 8 years ago

Closed 8 years ago

#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:


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 (1)

comment:1 Changed 8 years ago by gb

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

(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.