\documentclass[]{article}
\usepackage{amsmath,graphicx,supertabular,hyperref,tabularx,ifthen}
\title{TIP \#50: Bundle [incr Tcl] with the Core Tcl distribution}
\date{July 27, 2001}
\author{Kevin Kenny, Mark Harrison, Jeff Hobbs, Andreas Kupries, Karl Lehenbauer, Michael McLennan, Don Porter, Brent Welch}
\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 \#50}&\textbf{Bundle [incr Tcl] with the Core Tcl distribution}\\\hline
Author&

Kevin Kenny \tipmail{kennykb}{acm.org}
\par
Mark Harrison \tipmail{markh}{asiainfo.com}
\par
Jeff Hobbs \tipmail{jeffh}{ActiveState.com}
\par
Andreas Kupries \tipmail{andreas}{ActiveState.com}
\par
Karl Lehenbauer \tipmail{karl}{procplace.com}
\par
Michael McLennan \tipmail{mmc}{cadence.com}
\par
Don Porter \tipmail{dgp}{users.sourceforge.net}
\par
Brent Welch \tipmail{welch}{acm.org}
\\
Created&Friday, \(\text{27}^{\text{th}}\) July 2001\\
Type&Informative\\
State&Final\\
Vote&Done\\
Version&\tipversion$Revision: 1.12 $\\
Post History&\\
\hline\end{tabularx}\end{center}
\thispagestyle{empty}\pagestyle{empty}
\begin{tipabstract}

A ``town meeting'' discussion in which users were given the opportunity to question the Tcl Core Team at the 2001 Open Source Convention has revealed a great popular demand for bundling an object system with the distribution of the Tcl Core. This TIP presents a compromise proposal for including [incr Tcl] that was acceptable to all eight TCT members present.
\end{tipabstract}
\tableofcontents\setcounter{page}{0}\clearpage\pagestyle{plain}

\section{Proposal}
\begin{itemize}
\item{}
[incr Tcl] [\url{http://tcltk.com/itcl/}] shall be bundled with the core Tcl distribution.
\item{}
[incr Tcl] shall be ``included'' in the Core in only a weak sense.

The location of the [incr Tcl] source tree shall be left to the discretion of the affected maintainers. (It appears likely that most [incr Tcl] source will appear in a separate \textit{itcl} directory parallel to the \textit{generic}, \textit{mac}, \textit{unix} and \textit{win} directories in the source.)

[incr Tcl] shall be built as a separate loadable package, similar to the \textit{dde}, \textit{http}, \textit{msgcat}, and \textit{registry} packages. 

The \textit{::itcl} namespace shall be the only new component included in the global namespace, and shall appear only when a script executes
\begingroup\small\begin{verbatim}
               package require Itcl
\end{verbatim}
\endgroup

There shall be no \textit{::class} command in the Core.

The \textit{::info} command shall not provide any subcommands specific to [incr Tcl].
\item{}
[incr Tcl] shall not be substantially modified under the scope of this TIP.

The existing issues surrounding errors thrown from object destructors shall not be addressed.

The existing use of \textit{rename} for object destruction shall not be amended.

All other limitations of [incr Tcl] are initially accepted as they are.

Of course, additional TIPs could be submitted to modify [incr Tcl] as desired!
\item{}
The TCT shall assume the role of \textit{gatekeeper} for changes to the functionality of [incr Tcl].

Changes that affect user-visible functionality of [incr Tcl] shall be made through the TIP process.

Informational TIPs identifying maintainer areas and assigning maintainers to them shall be developed.
\item{}
Nothing in this TIP shall be construed as identifying [incr Tcl] as a single preferred object system for Tcl. If the community desires other systems such as OTcl, XOTcl, or ObjecTcl to stand on an equal footing to [incr Tcl], their champions can introduce TIPs similar to this one.
\item{}
[incr Tk] and [incr widgets] are outside the scope of this TIP.
\end{itemize}

\section{Rationale}

The lack of a standard object and data abstraction system continues to hinder Tcl development.

\begin{quote}
``Lets face it, not including any sort of OO system is one of the major failings of Tcl. Indexing into global arrays is a sad hack when compared to a real OO system.'' \textit{- Mo DeJong \tipmail{mdejong}{cygnus.com}}
\end{quote}

Moreover, the argument that ``Tcl is not object oriented'' continues to hamper Tcl marketing. Including at least one object system with the Tcl core, so that it is dependably available unless the user has built from source, would address this objection.

Since an earler proposal (\cite{tip6}) to incorporate [incr Tcl] into the Core failed to garner the necessary votes, at least in part because participants were uncertain of the rationales, it seems wise to discuss the individual points in further detail.
\begin{itemize}
\item{}
All agree that some sort of object system must be bundled with the core so that it is dependably available. [incr Tcl] appears to be the most popular of the existing systems, as well as the most familiar to the current TCT, making it the most attractive of several candidates for this role.
\item{}
The original [incr Tcl] developers have pointed out that bundling in the Core would facilitate [incr Tcl] development greatly. While it is a separate loadable package, [incr Tcl] is intimate with the core, depending on many undocumented interfaces to carry out its functions. Integrating it with the Core would make it easier to maintain.
\item{}
Including a \textit{::class} command in the Core is not acceptable at this time, because it would have the effect of disenfranchising the users of other object systems -{}- who are too numerous to ignore. Moreover, the ability of Tcl to serve as a test platform for novel object models must not be compromised.
\item{}
Similarly, integrating [incr Tcl] closely with commands such as \textit{::info} or \textit{::destroy} would accord it a privileged status that the users of other object systems are reluctant to accept.
\item{}
[incr Tcl] is what it is. It would be inappropriate to demand that all the perceived shortcomings of the [incr Tcl] system be addressed prior to inclusion in the Core. The TIP process is available to make further changes; the system is certainly good enough that many thousands of programmers use it daily.
\item{}
If [incr Tcl] is to be included in the Core, then common sense requires that it be under control of the TIP process.
\end{itemize}

\section{Alternatives}
\begin{itemize}
\item{}
Include [incr Tcl] in a ``batteries included'' (BI) distribution.

Many people will not opt for the BI distribution (\cite{tip4}) due to its larger size. It is quite likely that (for example) a Linux distribution my include Tcl as a standard component, but place the BI on a supplemental disk.

Moreover, as mentioned above, the [incr Tcl] sources are already intimate with the Tcl core; there are great maintenance savings to be achieved by combining the source distributions. 
\item{}
Integrate [incr Tcl] tightly into the Tcl Core.

This alternative is unacceptable to a good many users. A number of attendees at the 2001 Open Source Convention mentioned specifically that they use alternative object systems such as OTcl. These users would be essentially disenfranchised if, for instance, a \textit{::class} command were to appear in the Core.
\end{itemize}

\section{Implementation}

Jeff Hobbs has volunteered to lead the implementation effort with the assistance of all volunteers who want to help.

\section{Notes}

Eight members of the Tcl Core Team (Harrison, Hobbs, Kenny, Kupries, Lehenbauer, McLennan, Porter and Welch) agreed orally to this proposal at the 2001 Open Source Convention. Since not all have had the opportunity to read the formal written version of the proposal, that vote shall not be considered binding.

\section{References}
\begin{itemize}
\item{}
\url{http://tcltk.com//itcl}
\item{}
\cite{tip6}
\end{itemize}

\section{Copyright}

This document has been placed in the public domain.

\section{Colophon}

\textit{TIP AutoGenerator --- written by Donal K. Fellows}
\begin{thebibliography}{TIP \#2}
\addcontentsline{toc}{section}{References}
\bibitem[TIP \#4]{tip4}
Brent Welch,
Donal K. Fellows,
Larry W. Virden,
Larry W. Virden,
\emph{Tcl Release and Distribution Philosophy},
on-line at \url{http://purl.org/tcl/tip/4.html}
\bibitem[TIP \#6]{tip6}
Mark Harrison,
\emph{Include [Incr Tcl] in the Core Tcl distribution},
on-line at \url{http://purl.org/tcl/tip/6.html}
\end{thebibliography}
\end{document}
