Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion doc/book/diffs.tex
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,20 @@ \chapter{Differences between Icon and Unicon}
the emphasis of this page is on {\em incompatibilities\/} that might
require changes to existing Icon programs.

\section{Extensions to Functions and Operators}
\section{Extensions to Functions, Operators and Keywords}

Unicon broadens the meaning of certain pre-existing functions where it
is consistent and unambiguous to do so. These extensions revolve
primarily around the list type. For example,
\index{insert()}\texttt{insert()} allows insertion into the middle of a
list, \texttt{reverse()} reverses a list, and so forth.

The keywords \texttt{\&clock}\index{\&clock} and
\texttt{\&dateline}\index{\&dateline}
have been extended to generate timezone information. The extensions
may alter the behavour of Icon programs that use these keywords in a
context where failure is possible.

\section{Objects}

Unicon supports the concepts of classes and packages with declaration
Expand Down
12 changes: 6 additions & 6 deletions doc/book/langref.tex
Original file line number Diff line number Diff line change
Expand Up @@ -317,11 +317,11 @@ \section{Keywords}

\bigskip\hrule\vspace{0.1cm}
\noindent
{\bf \&clock : string } \hfill {\bf time of day}
{\bf \&clock : string* } \hfill {\bf time of day}

\noindent
\texttt{\&clock} produces a string consisting of the current
\index{time of day \&clock}time of day in hh:mm:ss format.
\texttt{\&clock} generates two strings, consisting of the current
\index{time of day \&clock}time of day (in hh:mm:ss format) and the time zone.
See also keyword \texttt{\&now}.

\bigskip\hrule\vspace{0.1cm}
Expand Down Expand Up @@ -368,11 +368,11 @@ \section{Keywords}

\bigskip\hrule\vspace{0.1cm}
\noindent
{\bf \&dateline : string } \hfill {\bf time stamp}
{\bf \&dateline : string* } \hfill {\bf time stamp}

\noindent
\index{time stamp}\texttt{\&dateline} produces a human-readable time
stamp that includes the day of the week, the date, and the current
\index{time stamp}\texttt{\&dateline} generates two strings, consisting of a human-readable time
stamp and the time zone. The time stamp includes the day of the week, the date, and the current
time, down to the minute.

\bigskip\hrule\vspace{0.1cm}
Expand Down
Loading