Re: printing readably an array of type bit!



Thank you for the quick reply!
- Yes, I didn't say that, it is intended to print 2 dimensional square
arrays of type bit.
- I know it is not allowed to add methods to print-object, but for
hash-talbes
it works fine ;-).

Imagine to have vectors, lists, structures that have inside this type
of arrays and you would like to print them readably with my onw print
function . Then you have to iterate somehow over this objects... this
can become quiet triky (but possible and would also result in portable
code).

For the read-macro: is it allowed to redefine the #nA(...) notation?
If not, I've to print them first with my secialized function and that
brings me back to problem 1.

What about something like:
(defgeneric print-object ((matrix0 array) (stream0 stream))
(if (eq 'bit (array-element-type matrix0))
(my-print method)
(call-next-method ....))))

c.



.