(copy-pprint-dispatch nil) doesn't restore the original pprint-dispatch table

Bug #678409 reported by Stas Boukarev on 2010-11-22
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

*initial-pprint-dispatch-table* is used in copy-print-dispatch when the value of table is NIL.
But *readtable* is just set to the value of *initial-pprint-dispatch-table* without copying: http://git.boinkor.net/gitweb/sbcl.git/blob/HEAD:/src/code/pprint.lisp#l1594
So, when I modify *readtable*, *initial-pprint-dispatch-table* is modified too and (copy-pprint-dispatch nil) doesn't restore anything.

Changed in sbcl:
importance: Undecided → Low
status: New → Triaged
Nikodemus Siivola (nikodemus) wrote :


Changed in sbcl:
status: Triaged → Fix Committed
Changed in sbcl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers