Skip to content
Snippets Groups Projects
Commit 5280267e authored by toy's avatar toy
Browse files

Add a short blurb that the reader supports reading of specialized

arrays as an ANSI-compatible extension.
parent a13747e0
No related branches found
No related tags found
No related merge requests found
......@@ -897,6 +897,27 @@ object may have changed.
\section{The Reader}
\subsection{Reader Extensions}
\cmucl{} supports an ANSI-compatible extension to enable reading of
specialized arrays. Thus
\begin{example}
* (setf *print-readably* nil)
NIL
* (make-array '(2 2) :element-type '(signed-byte 8))
#2A((0 0) (0 0))
* (setf *print-readably* t)
T
* (make-array '(2 2) :element-type '(signed-byte 8))
#A((SIGNED-BYTE 8) (2 2) ((0 0) (0 0)))
* (type-of (read-from-string "#A((SIGNED-BYTE 8) (2 2) ((0 0) (0 0)))"))
(SIMPLE-ARRAY (SIGNED-BYTE 8) (2 2))
* (setf *print-readably* nil)
NIL
* (type-of (read-from-string "#A((SIGNED-BYTE 8) (2 2) ((0 0) (0 0)))"))
(SIMPLE-ARRAY (SIGNED-BYTE 8) (2 2))
\end{example}
\subsection{Reader Parameters}
\begin{defvar}{extensions:}{ignore-extra-close-parentheses}
If this variable is \true{} (the default), then the reader merely
......@@ -904,7 +925,6 @@ object may have changed.
(instead of signalling an error.)
\end{defvar}
\section{Stream Extensions}
\begin{defun}{extensions:}{read-n-bytes}{%
\args{\var{stream buffer start numbytes}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment