Re: printing readably an array of type bit!
- From: "\"(typep 'nil (statisfies 'identity))\"" <christophamort@xxxxxxxx>
- Date: Fri, 31 Oct 2008 01:57:02 -0700 (PDT)
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.
.
- Follow-Ups:
- Re: printing readably an array of type bit!
- From: Barry Margolin
- Re: printing readably an array of type bit!
- From: \"(typep 'nil (statisfies 'identity))\"
- Re: printing readably an array of type bit!
- References:
- printing readably an array of type bit!
- From: \"(typep 'nil (statisfies 'identity))\"
- Re: printing readably an array of type bit!
- From: Barry Margolin
- printing readably an array of type bit!
- Prev by Date: Re: S-expr form of C
- Next by Date: Re: printing readably an array of type bit!
- Previous by thread: Re: printing readably an array of type bit!
- Next by thread: Re: printing readably an array of type bit!
- Index(es):