Notice that defining a print-object methond on hash-table (or any other
standard class) is not conforming.
However if you want a general solution, you would have to reimplement about
the whole lisp printer system, so if it works for you, good. Just beware
that it may break on some other implementation.
--
__Pascal J. Bourguignon__