Ticket #827 (closed defect: duplicate)
2D bitmap print-non-readably behavior is misleading
| Reported by: | mcpublic | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | other | Version: | trunk |
| Keywords: | reader printer | Cc: | fred@… |
Description (last modified by gb) (diff)
Summary: 2D Bitmap arrays print non-readably, #2A(#*101010 #*010101) doesn't read as 2D array, barfs, ...AND... can't create a 2D bitmap using reader.
If you create a 2D bitmap using (make-array '(4 4) :element-type '(mod 2)) The result will print as #2A(#*0000 #*0000 #*0000 #*0000) When you read it back in, the reader barfs:
> Error: Reader error on #<CCL::RECORDING-CHARACTER-INPUT-STREAM #xC75FFE6>, near position 32: > Initial contents for #A is inconsistent with dimensions: #2A(#<SIMPLE-BIT-VECTOR 4> #<SIMPLE-BIT-VECTOR 4> #<SIMPLE-BIT-VECTOR 4> #<SIMPLE-BIT-VECTOR 4>)
The related bug is that #1A(#*0000 #*0000 #*0000 #*0000) works "just fine" except it creates a 1D array.
Apparently there is no way to create a 2D bitmap from the reader.
Change History
Note: See
TracTickets for help on using
tickets.
