\documentclass[]{article}
\usepackage{amsmath,graphicx,supertabular,hyperref,tabularx,ifthen}
\title{TIP \#188: Add 'string is wideinteger' to the 'string is' Subcommand}
\date{April 23, 2004}
\author{Kevin Kenny}
\urlstyle{sf}
\setlength{\parskip}{1ex}
\setlength{\parindent}{0pt}
\def\tipversion$#1${\texttt{\$#1\$}}
\def\tiplangle#1{\ensuremath{<}}
\def\tiprangle#1{\ensuremath{>}}
\def\tipbar#1{\ensuremath{|}}
\def\tipmail#1#2{\(\langle\){\small\expandafter\url{#1@#2}}\(\rangle\)}
\ifx\pdfoutput\undefined
\newcommand{\tipimage}[2]{\typeout{Make sure you download #1.eps}\ifthenelse{\lengthtest{0.8\textwidth>#2}\and\lengthtest{0pt<#2}}{\includegraphics{#1.eps}}{\includegraphics[width=0.8\textwidth]{#1.eps}}}
\newcommand{\tipxref}[1]{}
\newcommand{\tipxrefend}{}
\else
\newcommand{\tipimage}[2]{\typeout{Make sure you create #1.pdf}\ifthenelse{\lengthtest{0.8\textwidth>#2}\and\lengthtest{0pt<#2}}{\includegraphics{#1.pdf}}{\includegraphics[width=0.8\textwidth]{#1.pdf}}}
\pdfcatalog{/PageMode /UseOutlines}
\newcommand{\tipxref}[1]{\pdfannotlink attr {/C [0.5 0.5 1.0] /Border [0 0 1]} goto name {#1}}
\newcommand{\tipxrefend}{\pdfendlink}
\fi
\newenvironment{tipabstract}{\begin{abstract}}{\end{abstract}}
\begin{document}\maketitle
\begin{center}\begin{tabularx}{\linewidth}{|r@{: }X|}\hline
\textbf{TIP \#188}&\textbf{Add 'string is wideinteger' to the 'string is' Subcommand}\\\hline
Author&

Kevin Kenny \tipmail{kennykb}{acm.org}
\\
Created&Friday, \(\text{23}^{\text{rd}}\) April 2004\\
Type&Project\\
Tcl Version&\(8.5\)\\
State&Final\\
Vote&Done\\
Version&\tipversion$Revision: 1.7 $\\
Keywords&Tcl\\
Post History&\\
Discussions To&news:comp.lang.tcl\\
\hline\end{tabularx}\end{center}
\thispagestyle{empty}\pagestyle{empty}
\begin{tipabstract}

The \textbf{string} command supports tests for a number of Tcl's basic types, for example, integers, doubles, and booleans. This TIP proposes adding wide integers.
\end{tipabstract}
\tableofcontents\setcounter{page}{0}\clearpage\pagestyle{plain}

\section{Rationale}

The \textbf{string} command includes tests for the common Tcl types: \textbf{string is boolean}, \textbf{string is double} and \textbf{string is integer}. Unaccountably, \textbf{string is wideinteger} is missing from the list, making it difficult for an input validation procedure to determine whether, in fact, a string contains a valid wide integer.

\section{Specification}

This document proposes augmenting the \textbf{string is} command with a \textbf{string is wideinteger} that functions the same as \textbf{string is integer} in every respect except for the fact that it accepts any string containing a substring that is valid as a wide integer (that is, acceptable to \textit{Tcl\_GetWideIntFromObj}) possibly surrounded by whitespace.

\section{Reference Implementation}

Patches that implement \textbf{string is wideinteger}, provide test cases for it, and update \textit{doc/string.n} to include it are available at SourceForge as Tcl Patch \#940915[\url{http://sf.net/tracker/?func=detail&atid=310894&aid=940915&group_id=10894}].

\section{Copyright}

Copyright 2004, by Kevin B. Kenny. Redistribution permitted under the terms of the Open Publication License [\url{http://www.opencontent.org/openpub/}].

\section{Colophon}

\textit{TIP AutoGenerator --- written by Donal K. Fellows}
\end{document}
