Skip to content

Commit 045fdb4

Browse files
authored
documenting optional string argument of display and error (#266)
* documenting optional string argument of display and error * conflicts resolved
1 parent 127b792 commit 045fdb4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/source_names.tex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,11 @@ \section*{Names}
5454
the ``OK'' button is pressed, \texttt{prompt} returns the entered text as a string.
5555
If the ``Cancel'' button is pressed, \texttt{prompt} returns a non-string value.
5656
\item \href{https://sicp.comp.nus.edu.sg/chapters/17\#footnote-6}{\texttt{display(x)}}: Displays the value \texttt{x} in the console\footnote{The notation used for the display of values is consistent with \href{http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf}{\color{DarkBlue}JSON}, but also displays \texttt{undefined} and function objects.}; returns the argument \texttt{a}.
57+
\item \texttt{display(x, s)}: Displays the string \texttt{s}, followed by a space character, followed by the value \texttt{x} in the console\footnotemark[\value{footnote}]; returns the argument \texttt{x}.
5758
\item \href{https://sicp.comp.nus.edu.sg/chapters/21\#footnote-3}{\texttt{error(x)}}: Displays the value \texttt{x} in the console\footnotemark[\value{footnote}] with error flag. The evaluation
5859
of any call of \texttt{error} aborts the running program immediately.
60+
\item \texttt{error(x, s)}: Displays the string \texttt{s}, followed by a space character, followed by the value \texttt{x} in the console\footnotemark[\value{footnote}] with error flag. The evaluation
61+
of any call of \texttt{error} aborts the running program immediately.
5962
\item \href{https://sicp.comp.nus.edu.sg/chapters/62}{\lstinline{stringify(x)}}: returns a string that represents\footnotemark[\value{footnote}] the value \texttt{x}.
6063
\end{itemize}
6164
All Source primitive functions, except \verb#stringify#, can be assumed to run

0 commit comments

Comments
 (0)