Commit of 4.0.1 version
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
%
|
||||
% Author: Erick Gallesio [eg@unice.fr]
|
||||
% Creation date: ??-Nov-1993 ??:??
|
||||
% Last file update: 21-Jan-1996 18:29
|
||||
% Last file update: 27-Sep-1999 14:40 (eg)
|
||||
%
|
||||
|
||||
When {\stk} detects that a \var{tk-command} must be called, parameters are
|
||||
@@ -109,7 +109,7 @@ arrows for example), the scrollbar is updated by calling it's
|
||||
associated closure. Tk library passes position informations to
|
||||
scrolling closures. This informations are the parameters of the
|
||||
closure. Hereafter is an example implementing a text widget with a
|
||||
scrollbar (see the help pages for details):
|
||||
scrollbar (see the help pages for details and \ref{help}):
|
||||
\begin{scheme}
|
||||
(text '.txt :yscrollcommand (lambda l (apply .scroll 'set l)))
|
||||
(scrollbar '.scroll :command (lambda l (apply .txt 'yview l)))
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
%
|
||||
% Author: Erick Gallesio [eg@unice.fr]
|
||||
% Creation date: ??-Nov-1993 ??:??
|
||||
% Last file update: 20-Apr-1998 11:54
|
||||
% Last file update: 27-Sep-1999 14:42 (eg)
|
||||
%
|
||||
|
||||
\newcommand{\schglob}[1]{*#1*}
|
||||
@@ -87,9 +87,9 @@ The following symbols are defined only when Tk is loaded:
|
||||
\item {\tt\schglob{help-path}}\schindex{help,
|
||||
getting}\schindex{\schglob{help-path}} must contain a list of
|
||||
strings. Each string is taken as a directory path name in which
|
||||
documentation files are searched. This variable can be set
|
||||
automatically from the {\tt STK\_HELP\_PATH} shell variable. See
|
||||
{\tt stk(1)} for more details.
|
||||
documentation files are searched by the command \var{help}\ref{help}.
|
||||
This variable can be set automatically from the {\tt STK\_HELP\_PATH}
|
||||
shell variable. See {\tt stk(1)} for more details.
|
||||
|
||||
\item {\tt\schglob{image-path}}\schindex{\schglob{image-path}} must contain
|
||||
a list of strings. Each string is taken as a directory path name in which
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
%
|
||||
% Author: Erick Gallesio [eg@unice.fr]
|
||||
% Creation date: 22-May-1994 22:13
|
||||
% Last file update: 5-Jun-1999 14:48
|
||||
% Last file update: 18-Sep-1999 15:21 (eg)
|
||||
%
|
||||
|
||||
\section{Introduction}
|
||||
@@ -113,7 +113,7 @@ For instance,
|
||||
\begin{scheme}
|
||||
(class-slots A) \lev (a)
|
||||
(class-slots E) \lev (a e c)
|
||||
(class-slots F) \lev (d a b c f)
|
||||
(class-slots F) \lev (b e c d a f)
|
||||
\end{scheme}
|
||||
|
||||
\begin{note}
|
||||
@@ -311,10 +311,10 @@ For instance, the following expression
|
||||
permits to set the angle of the {\tt c} complex number. This expression
|
||||
conducts, in fact, to the evaluation of the following expression
|
||||
\begin{scheme}
|
||||
((lambda o m)
|
||||
((lambda (o a)
|
||||
(let ((m (slot-ref o 'm)))
|
||||
(slot-set! o 'r (* m (cos a)))
|
||||
(slot-set! o 'i (* m (sin a))))
|
||||
(slot-set! o 'i (* m (sin a)))))
|
||||
c 3)
|
||||
\end{scheme}
|
||||
A more complete example is given below:
|
||||
@@ -494,7 +494,7 @@ each parameter can use a specializer. In this case, the parameter list is scanne
|
||||
from left to right to determine the applicability of a method. Suppose we declare
|
||||
now
|
||||
\begin{scheme}
|
||||
(define-method M ((a <integer>) (b <number>)) 'integer-number)
|
||||
(define-method M ((a <integer>) (b <integer>)) 'integer-integer)
|
||||
(define-method M ((a <integer>) (b <real>)) 'integer-real)
|
||||
(define-method M (a (b <number>)) 'top-number)
|
||||
\end{scheme}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
%
|
||||
% Author: Erick Gallesio [eg@unice.fr]
|
||||
% Creation date: 21-Dec-1997 20:09
|
||||
% Last file update: 1-Sep-1999 23:17 (eg)
|
||||
% Last file update: 27-Sep-1999 15:45 (eg)
|
||||
%
|
||||
|
||||
\section*{Introduction}
|
||||
@@ -16,6 +16,13 @@ the various recent versions of STk. Differences with older versions
|
||||
as well as implementation changes are described in the CHANGES file
|
||||
located in the main directory of the STk distribution.
|
||||
|
||||
\section*{Release 4.0.1}
|
||||
\small{\emph{Release date: 09/27/99}}
|
||||
Mains changes/modifications since 4.0.1:
|
||||
\begin{itemize}
|
||||
\item Integration of SFI-9
|
||||
\end{itemize}
|
||||
|
||||
\section*{Release 4.0.0}
|
||||
\small{\emph{Release date: 09/03/99}}
|
||||
Mains changes/modifications since 3.99.4:
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
%
|
||||
% Author: Erick Gallesio [eg@unice.fr]
|
||||
% Creation date: 21-Dec-1994 12:05
|
||||
% Last file update: 27-Jun-1998 10:12
|
||||
% Last file update: 22-Sep-1999 11:50 (eg)
|
||||
%
|
||||
|
||||
\section{Introduction}
|
||||
@@ -230,22 +230,32 @@ document is available at
|
||||
{\tt file://swiss-ftp.ai.mit.edu/pub/scm/HTML/r4rs\_toc.html}
|
||||
\end{quote}
|
||||
|
||||
\subsection{The Scheme Repository}
|
||||
\subsection{Web sites}
|
||||
|
||||
The main site where you can find (many) informations about Scheme is
|
||||
located in the University of Indiana. The Scheme repository\index{Scheme
|
||||
Repository} is maintained by David Eby. The repository currently consists
|
||||
of the following areas:
|
||||
The most up to date general site on Scheme is located at
|
||||
www.schemers.org\index{Schemers.org}. This site contains informations
|
||||
and links about
|
||||
\begin{itemize}
|
||||
\item Lots of scheme code meant for benchmarking, library/support, research, education, and fun.
|
||||
\item On-line documents: Machine readable standards documents, standards proposals, various Scheme-related tech reports, conference papers, mail archives, etc.
|
||||
\item Most of the publicly distributable Scheme Implementations.
|
||||
\item Material designed primarily for instruction.
|
||||
\item Freely-distributable promotional or demonstration material for Scheme-related products.
|
||||
\item Utilities (e.g., Schemeweb, SLaTeX).
|
||||
\item Extraneous stuff, extensions, etc.
|
||||
\item textbooks on Scheme, tutorials and standards
|
||||
\item various implementations of the language as well as environments for Scheme
|
||||
\item SRFI (Scheme Request For Implementation)
|
||||
\item events related to Scheme programming
|
||||
\item and much more ...
|
||||
\end{itemize}
|
||||
|
||||
Another important site is the Scheme repository\index{Scheme
|
||||
Repository}. Hopelessly, this site is no more maintained, but its
|
||||
content is rich enough to spend some time on it. The repository
|
||||
consists of the following areas:
|
||||
\begin{itemize}
|
||||
\item Lots of scheme code meant for benchmarking, library/support, research, education, and fun.
|
||||
\item On-line documents: Machine readable standards documents, standards proposals, various Scheme-related tech reports, conference papers, mail archives, etc.
|
||||
\item Most of the publicly distributable Scheme Implementations.
|
||||
\item Material designed primarily for instruction.
|
||||
\item Freely-distributable promotional or demonstration material for Scheme-related products.
|
||||
\item Utilities (e.g., Schemeweb, SLaTeX).
|
||||
\item Extraneous stuff, extensions, etc.
|
||||
\end{itemize}
|
||||
You can access the Scheme repository with
|
||||
{\tt
|
||||
\begin{itemize}
|
||||
@@ -253,7 +263,6 @@ You can access the Scheme repository with
|
||||
\item http://www.cs.indiana.edu/scheme-repository/SRhome.html
|
||||
\end{itemize}
|
||||
}
|
||||
|
||||
The Scheme Repository is mirrored in Europe:
|
||||
{\tt
|
||||
\begin{itemize}
|
||||
@@ -262,6 +271,7 @@ The Scheme Repository is mirrored in Europe:
|
||||
\item ftp.informatik.uni-muenchen.de:/pub/comp/programming/languages/scheme/scheme-repository
|
||||
\end{itemize}
|
||||
}
|
||||
|
||||
\subsection{Usenet newsgroup and other addresses}
|
||||
|
||||
There is a usenet newsgroup about the Scheme Programming language: {\tt
|
||||
@@ -277,3 +287,8 @@ at MIT
|
||||
\item {\tt http://www.ai.mit.edu/projects/su/su.html} is the Scheme Underground
|
||||
web page
|
||||
\end{itemize}
|
||||
|
||||
%%% Local Variables:
|
||||
%%% mode: latex
|
||||
%%% TeX-master: "manual"
|
||||
%%% End:
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# Makefile for Manual building
|
||||
|
||||
include ../../config.make
|
||||
|
||||
TEX= manual.tex commands.tex Reference1.tex Reference2.tex \
|
||||
Appendix-A.tex Appendix-B.tex Appendix-C.tex Appendix-D.tex
|
||||
|
||||
@@ -8,6 +10,9 @@ all: dvi ps
|
||||
dvi: manual.dvi
|
||||
ps: manual.ps
|
||||
|
||||
install: ps
|
||||
$(CP) manual.ps $(DOC_DIR)
|
||||
|
||||
manual.dvi: bibli $(TEX)
|
||||
echo -n > index.tex
|
||||
latex manual.tex
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
%
|
||||
% Author: Erick Gallesio [eg@unice.fr]
|
||||
% Creation date: ??-Nov-1993 ??:??
|
||||
% Last file update: 31-Aug-1999 13:04 (eg)
|
||||
% Last file update: 18-Sep-1999 15:08 (eg)
|
||||
%
|
||||
|
||||
\section*{Introduction}
|
||||
@@ -104,7 +104,7 @@ This kind of comment extends to the end of the line (as described in \rrrr).
|
||||
{\tt \sharpsign{\em n}\sharpsign} syntax (see below). The scope of
|
||||
the label is the expression being read by the outermost \ide{read}.
|
||||
|
||||
\item[\tt\sharpsign{\em n}=] is used to reference a some object
|
||||
\item[\tt\sharpsign{\em n}\sharpsign] is used to reference a some object
|
||||
labeled by a {\tt \sharpsign{\em n}=} syntax; that is,
|
||||
{\tt \sharpsign{\em n}\sharpsign} represents a pointer to the object
|
||||
labeled exactly by {\tt \sharpsign{\em n}=}. For instance, the object
|
||||
@@ -437,7 +437,7 @@ have been deleted. The predicate used to test the presence of \var{obj} in
|
||||
Returns the last pair of \var{list}\footnote{\ide{Last-pair} was a standard
|
||||
procedure in {\rthree}.}.
|
||||
\begin{scheme}
|
||||
(last-pair '(1 2 3)) \lev 3
|
||||
(last-pair '(1 2 3)) \lev (3)
|
||||
(last-pair '(1 2 . 3)) \lev (2 . 3)
|
||||
\end{scheme}
|
||||
\end{entry}
|
||||
@@ -1050,12 +1050,12 @@ the port is given by the user).
|
||||
specifying the command to execute prefixed with the string {\tt
|
||||
"|~"}. Specification of a pipe port can occur everywhere a file
|
||||
name is needed.
|
||||
\item Virtual ports creation needs that the basic I/O functions are
|
||||
at the port creation time. This functions will be used to simulate
|
||||
low level accesses a ``virtual device''. This kind of port is
|
||||
particularly convenient for reading or writing in a graphical window
|
||||
as if it was a file. Once virtual port is created, it can be accessed
|
||||
as a normal port with the standard Scheme primitives.
|
||||
\item Virtual ports are created by supplying basic I/O functions at
|
||||
port creation time. These functions will be used to simulate low
|
||||
level accesses to a ``virtual device''. This kind of port is
|
||||
particularly convenient for reading or writing in a graphical
|
||||
window as if it was a file. Once a virtual port is created, it can
|
||||
be accessed as a normal port with the standard Scheme primitives.
|
||||
\end{itemize}
|
||||
|
||||
|
||||
@@ -1281,18 +1281,18 @@ output string \var{port}.
|
||||
\saut
|
||||
|
||||
Returns a virtual port using the \var{getc} procedure to read a
|
||||
character from the port, \var{readyp} to know if there is to read from
|
||||
the port, \var{eofp} to know if the end of file is reached on the port
|
||||
and finally \var{close} to close the port. All theses procedure takes
|
||||
one parameter which is the port from which the input is done.
|
||||
\var{Open-input-virtual} accepts also the special value \schfalse{} for
|
||||
the I/O procedures with the following conventions:
|
||||
character from the port, \var{readyp} to know if there is any data to
|
||||
read from the port, \var{eofp} to know if the end of file is reached
|
||||
on the port and finally \var{close} to close the port. All theses
|
||||
procedure takes one parameter which is the port from which the input
|
||||
is done. \var{Open-input-virtual} accepts also the special value
|
||||
\schfalse{} for the I/O procedures with the following conventions:
|
||||
\begin{itemize}
|
||||
\item if \var{getc} or \var{eofp} is \schfalse{} any attempt to read
|
||||
the virtual port will an eof object;
|
||||
the virtual port will return an eof object;
|
||||
\item if \var{readyp} is \schfalse{}, the file will always be ready
|
||||
for reading;
|
||||
\item if \var{clos} is \schfalse{}, no action is done when the port is
|
||||
\item if \var{close} is \schfalse{}, no action is done when the port is
|
||||
closed.
|
||||
\end{itemize}
|
||||
|
||||
@@ -1424,7 +1424,7 @@ returned by \ide{write*} is undefined.
|
||||
(l2 '(3 4))
|
||||
(l3 '(5 6)))
|
||||
(append! l1 l2 l3)
|
||||
(list l1 l2 l3)) \ev \textit{writes} \verb+((1 2 . #0=(3 4 . #1=(5 6))) #0# #1#)+
|
||||
(write* (list l1 l2 l3))) \ev \textit{writes} \verb+((1 2 . #0=(3 4 . #1=(5 6))) #0# #1#)+
|
||||
\end{scheme}
|
||||
\end{entry}
|
||||
|
||||
@@ -1604,20 +1604,6 @@ Closes \var{port}. If \var{port} denotes a string port, further
|
||||
reading or writing on this port is disallowed.
|
||||
\end{entry}
|
||||
|
||||
\begin{entry}{%
|
||||
\proto{copy-port}{ src dst}{procedure}}
|
||||
\saut
|
||||
Copies the content of the input port \var{src} to the output-port \var{dest}.
|
||||
\begin{scheme}
|
||||
(define copy-file
|
||||
(lambda (src dst)
|
||||
(with-input-from-file src (lambda ()
|
||||
(with-output-to-file dst (lambda ()
|
||||
(copy-port (current-input-port)
|
||||
(current-output-port))))))))
|
||||
\end{scheme}
|
||||
\end{entry}
|
||||
|
||||
\begin{entry}{%
|
||||
\proto{port-closed?}{ port}{procedure}}
|
||||
\saut
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
%
|
||||
% Author: Erick Gallesio [eg@unice.fr]
|
||||
% Creation date: ??-Nov-1993 ??:??
|
||||
% Last file update: 16-Aug-1999 20:21
|
||||
% Last file update: 27-Sep-1999 15:24 (eg)
|
||||
%
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
@@ -155,6 +155,37 @@ Returns the widget name of \var{widget} as a symbol.
|
||||
\end{scheme}
|
||||
\end{entry}
|
||||
|
||||
\begin{entry}{%
|
||||
\proto{tk-get}{ widget opt}{procedure}}
|
||||
\saut
|
||||
Returns the value of the widget option \var{opt} of \var{widget}.
|
||||
\begin{scheme}
|
||||
(begin
|
||||
(label '.lab :text "Hello" :bd 3)
|
||||
(cons (tk-get .lab :bd) (tk-get .lab :text)))
|
||||
\lev (3 . "Hello")
|
||||
\end{scheme}
|
||||
See the online documentation for all the options provided by the Tk widgets.
|
||||
(see \ref{help}).
|
||||
\end{entry}
|
||||
|
||||
\begin{entry}{%
|
||||
\proto{tk-set!}{ widget opt value}{procedure}}
|
||||
\saut
|
||||
Sets the value of the widget option \var{opt} of \var{widget} to the
|
||||
given \var{value}.
|
||||
\begin{scheme}
|
||||
(begin
|
||||
(label '.lab :text "Hello")
|
||||
(tk-set! .lab :text "Hello, world!")
|
||||
(tk-get .lab :text))
|
||||
\lev "Hello, world!"
|
||||
\end{scheme}
|
||||
See the online documentation for all the options provided by the Tk widgets.
|
||||
(see \ref{help}).
|
||||
\end{entry}
|
||||
|
||||
|
||||
\begin{entry}{
|
||||
\proto{set-widget-data!}{ widget expr}{procedure}}
|
||||
\saut
|
||||
@@ -273,6 +304,16 @@ in all the \texttt{export} clauses.
|
||||
The result of \var{export} is undefined.
|
||||
\end{entry}
|
||||
|
||||
\begin{entry}{%
|
||||
\proto{export-all-symbols}{ } {procedure}}
|
||||
\saut
|
||||
|
||||
Exports all the symbols defined in the current module.
|
||||
|
||||
The result of \var{export-all-symbols} is undefined.
|
||||
\end{entry}
|
||||
|
||||
|
||||
|
||||
\begin{entry}{%
|
||||
\proto{import}{ \hyperi{module} \hyperii{module}\ldots} {syntax}}
|
||||
@@ -1613,6 +1654,13 @@ option uses the external command {\tt rsh}. The shell variable {\tt
|
||||
PATH} must be correctly set for accessing it without specifying its
|
||||
abolute path.
|
||||
|
||||
\item {\tt :fork} must be followed by a boolean value. This value
|
||||
specifies if a \emph{fork} system call must be done before running
|
||||
the process. If the process is run without \emph{fork} the Scheme
|
||||
program is lost. This feature mimics the ``exec'' primitive of the
|
||||
Unix shells. By default, the process a fork is executed before
|
||||
running the process (i.e. {\tt :fork} is \schtrue). This options
|
||||
works on Unix implementations only.
|
||||
\end{itemize}
|
||||
The following example launches a process which execute the
|
||||
Unix command {\tt ls} with the arguments {\tt -l} and {\tt
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
%
|
||||
% Author: Erick Gallesio [eg@unice.fr]
|
||||
% Creation date: 16-Dec-1997 14:00
|
||||
% Last file update: 17-May-1999 00:07
|
||||
% Last file update: 27-Sep-1999 15:30 (eg)
|
||||
%
|
||||
|
||||
|
||||
@@ -770,6 +770,28 @@ of \var{symbol}. Symbols are searched for in the current environment.
|
||||
\end{scheme}
|
||||
\end{entry}
|
||||
|
||||
\begin{entry}{%
|
||||
\proto{apropos}{ symbol}{ procedure}}
|
||||
\saut
|
||||
\ide{Apropos} returns a list of symbol whose print name contains the characters
|
||||
of \var{symbol}. Symbols are searched for in the current environment.
|
||||
\begin{scheme}
|
||||
(apropos 'cadd) \lev (caddar caddr cadddr)
|
||||
\end{scheme}
|
||||
\end{entry}
|
||||
|
||||
\begin{entry}{%
|
||||
\proto{help}{}{ procedure}}
|
||||
\saut
|
||||
\label{help}\schindex{help, getting}
|
||||
|
||||
\ide{help} pops a graphical help window giving acces to the online
|
||||
documentation.
|
||||
\begin{note}
|
||||
Tk must be initialized to use \ide{inspect}.
|
||||
\end{note}
|
||||
\end{entry}
|
||||
|
||||
\begin{entry}{%
|
||||
\proto{inspect}{ obj}{ procedure}}
|
||||
\saut %
|
||||
@@ -787,7 +809,7 @@ Tk must be initialized to use \ide{inspect}.
|
||||
|
||||
\begin{figure}
|
||||
\centerline{\psfig{figure={Inspector.ps}}}
|
||||
\caption{A view of the Inspector}
|
||||
\caption{A View of the Inspector}
|
||||
\end{figure}
|
||||
\end{entry}
|
||||
|
||||
|
||||
Binary file not shown.
+7124
-7004
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user