⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 f.html

📁 Tcl 语言的入门级图书
💻 HTML
字号:
<HTML><BODY>
<P> <H1>Foreword</H1>

Tcl is a scripting language something like Perl but extensible and somewhat
cleaner.  Many extensions are available.  Tk is an extension developed by the
creator of Tcl and used for creating scripts that interact with users through
windows.  Tcl can act as a Unix shell and Tk was originally developed to
create windows for the X Windows environment.  Tcl was meant to be portable
and Tcl/Tk has been ported to versions of Microsoft Windows and to the
MacIntosh.

<P>  Some advantages of Tcl:

<UL>
<P> <P><LI> Tcl/Tk runs in essentially the same form on Windows, MacIntosh, and
X Windows (Unix) platforms.  With version 8.0, the same script will produce
menus that are native to the platform on which the script runs.

<P> <P><LI> Tcl/Tk runs as a plugin from web browsers made by Netscape and
Microsoft.  It provides a very flexible mechanism for creating a unique
security policy to fit unique intranet and extranet needs.

<P> <P><LI> Tcl/Tk is flexible and interpreted.  You can tweak it to do what you
want.  You can write tools to help you with repetitive programming
tasks.

<P> <P><LI> Tcl/Tk is extensible.  You can add language features that support the
kinds of programming you must do.  

<P> <P><LI> You can use Tcl/Tk for fast high-level scripting that reuses code
written in C/C++.

<P> <P><LI>  Although Tcl/Tk has a strong C/C++ connection, you can use Tcl/Tk
without knowing any C/C++.  

<P> <P><LI> Tcl is a scripting language for running other programs.

<P> <P><LI> Tk's GUI environment has been adopted into other languages, notably
Perl and Python.   Using it from Tcl keeps you up-to-date with its changes.

<P> <P><LI> Tcl is the basis for Expect which is a useful language for
controlling interactive applications.

<P>  </UL>

<P>  This book is aimed at programmers who want to learn Tcl/Tk because they find
these advantages attractive.  It is a self-teaching book with more than 200
solved exercises.  All exercises run on both Windows and Unix versions of
Tcl/Tk.  Only a couple require code variations to accomplish this.  The
material in this book comes close to being platform independent.

<P>  Programmers and systems administrators with other interests may wish to 
learn from this book as well:

<UL>
<P> <P><LI> Tcl/Tk is valuable to Unix systems administrators who want to provide
their users with scripts accessible through a GUI front end.  (The examples in
this book do not illustrate systems administration topics because these 
tend to vary with the platform.)

<P> <P><LI> Tcl/Tk is valuable to C/C++ programmers who want to learn a high-level
scripting language for their user interfaces or for integrating pieces of a
large system.

</UL>

<P>  Although this book is meant to be studied sequentially by someone who works
on the exercises, it can serve the purpose of an "introductory manual" as
well.  The index is designed to send you to the main place for any given
topic.  At that place you find cross references to other places.

<P>  The material is detailed but not inclusive.  I have been concerned that
descriptions not be so long or so detailed that few people would wish to study
them and that descriptions not be so short that many people would need to go
to another source before accomplishing anything useful.

<P>  This book is not a simple-minded introduction, not a comprehensive manual,
and not a collection of production-quality scripts.  It bridges the gaps
between those things.

<P>  Here is the background I suggest you will need.  My suggestions are based on
the assumption that you are studying the material on your own.  A good
instructor can fill in some gaps so that you could study the material with
less preparation.

<UL>

<P> <P><LI> Four successful semesters of a solid four year computer science degree
<CITE>or</CITE> all of any technical bachelor's degree that is combined with a year's
experience as a programmer doing a variety of things in a general-purpose
language.

<P><LI> Some experience with the GUI environment that you will be using to run
the Tk exercises, for example, with Windows or X Windows.  If you only 
study the Tcl part of the book, this is not needed.

<P><LI> For Chapters 22, 23, 24, and 25,  a basic knowledge of C or C++.
You do not need to read these chapters.

<P><LI> For Chapters 10 and 21, some experience using the world-wide web.
You need not read these chapters.

</UL>

<P>   Ways to write maintainable, reusable code have long been an interest of
mine.  You will see this interest reflected in the way I have 
solved some of the exercises.

<P> J Adrian Zimmer, March, 1998
<!-- Linkbar -->
<P><CENTER><FONT SIZE=2><NOBR>
<STRONG>From</STRONG>
<A HREF="javascript:if(confirm('http://www.mapfree.com/sbf/tcl/book/home.html  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://www.mapfree.com/sbf/tcl/book/home.html'" tppabs="http://www.mapfree.com/sbf/tcl/book/home.html">Tcl/Tk For Programmers</A><WBR>
<STRONG>Author</STRONG>
<A HREF="javascript:if(confirm('http://www.mapfree.com/mp/jaz/home.html  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://www.mapfree.com/mp/jaz/home.html'" tppabs="http://www.mapfree.com/mp/jaz/home.html">J. A. Zimmer</A><WBR>
<STRONG>Copyright</STRONG>
<A HREF="copyright.html" tppabs="http://www.mapfree.com/sbf/tcl/book/select/Html/copyright.html">Notice</A><WBR>
<P>
<I>Jun 17, 1998</I>
 </NOBR></FONT></CENTER></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -