summaryrefslogtreecommitdiffstats
path: root/doc/load.n
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-10-24 21:22:30 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-10-24 21:22:30 (GMT)
commit66cb991a8b6edb5c8f424d1aed10e35b8113bd13 (patch)
tree781294ae5f8d82d4dd45d809249618c8dc528f39 /doc/load.n
parent20fbd4bb4bba957f3d3b611befff43c7fea5676d (diff)
downloadtcl-66cb991a8b6edb5c8f424d1aed10e35b8113bd13.zip
tcl-66cb991a8b6edb5c8f424d1aed10e35b8113bd13.tar.gz
tcl-66cb991a8b6edb5c8f424d1aed10e35b8113bd13.tar.bz2
syntax improvement: expect options before the filename
<p>start at documentation
Diffstat (limited to 'doc/load.n')
-rw-r--r--doc/load.n15
1 files changed, 12 insertions, 3 deletions
diff --git a/doc/load.n b/doc/load.n
index c32cb65..7f7c624 100644
--- a/doc/load.n
+++ b/doc/load.n
@@ -11,11 +11,11 @@
.SH NAME
load \- Load machine code and initialize new commands
.SH SYNOPSIS
-\fBload \fIfileName\fR
+\fBload\fR ?\fB\-global\fR? ?\fB\-lazy\fR? ?\fB\-\-\fR? \fIfileName\fR
.br
-\fBload \fIfileName packageName\fR
+\fBload ?\fB\-global\fR? ?\fB\-lazy\fR? ?\fB\-\-\fR? \fIfileName packageName\fR
.br
-\fBload \fIfileName packageName interp\fR
+\fBload ?\fB\-global\fR? ?\fB\-lazy\fR? ?\fB\-\-\fR? \fIfileName packageName interp\fR
.BE
.SH DESCRIPTION
.PP
@@ -104,6 +104,15 @@ Otherwise, the \fBload\fR command searches for a dynamically loaded
package by that name, and uses it if it is found. If several
different files have been \fBload\fRed with different versions of
the package, Tcl picks the file that was loaded first.
+.PP
+If \fB\-global\fR is specified preceding the filename, all symbols
+found in the shared library are exported for global use by other
+libraries. The option \fB\-lazy\fR delays the actual loading of
+symbols until their first actual use. The options may be abbreviated.
+The option \fB\-\-\fR indicates the end of the options, and should
+be used if you wish to use a filename which starts with \fB\-\fR.
+On platforms which do not support the \fB\-global\fR or \fB\-lazy\fR
+options, the options still exist but have no effect.
.SH "PORTABILITY ISSUES"
.TP
\fBWindows\fR\0\0\0\0\0