Re: printing readably an array of type bit!



In article
<a34796be-9160-4beb-810e-ac48c6f860b2@xxxxxxxxxxxxxxxxxxxxxxxxxxx>,
"\"(typep 'nil (statisfies 'identity))\"" <christophamort@xxxxxxxx>
wrote:

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

Yes, this is a problem. I was assuming you needed this just for some
specific data in your application. Do you really need the full
generality of the Lisp printer?

Perhaps you could wrap your bit arrays in a structure or class, and
define a PRINT-OBJECT method for that class.

--
Barry Margolin, barmar@xxxxxxxxxxxx
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
.