diff options
author | dgp <dgp@users.sourceforge.net> | 2012-11-15 01:54:58 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2012-11-15 01:54:58 (GMT) |
commit | 76e73691b33ba9ef39b69502966b07e3f36dcb27 (patch) | |
tree | e8eb1820be355d06d56ff942a4a7827e658d1dae /doc/load.n | |
parent | 9319d1c4b1fe0c2d64a56400216cabfb1e48def8 (diff) | |
parent | 9ae0d652824688e3ac54ef7d4df854cbedbefe72 (diff) | |
download | tcl-76e73691b33ba9ef39b69502966b07e3f36dcb27.zip tcl-76e73691b33ba9ef39b69502966b07e3f36dcb27.tar.gz tcl-76e73691b33ba9ef39b69502966b07e3f36dcb27.tar.bz2 |
merge trunk:
Diffstat (limited to 'doc/load.n')
-rw-r--r-- | doc/load.n | 22 |
1 files changed, 19 insertions, 3 deletions
@@ -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\fR ?\fB\-global\fR? ?\fB\-lazy\fR? ?\fB\-\-\fR? \fIfileName packageName\fR .br -\fBload \fIfileName packageName interp\fR +\fBload\fR ?\fB\-global\fR? ?\fB\-lazy\fR? ?\fB\-\-\fR? \fIfileName packageName interp\fR .BE .SH DESCRIPTION .PP @@ -104,6 +104,22 @@ 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 +and you provide a packageName to the \fBload\fR command. +.PP +On platforms which do not support the \fB\-global\fR or \fB\-lazy\fR +options, the options still exist but have no effect. Note that use +of the \fB\-global\fR or \fB\-lazy\fR option may lead to crashes +in your application later (in case of symbol conflicts resp. missing +symbols), which cannot be detected during the \fBload\fR. So, only +use this when you know what you are doing, you will not get a nice +error message when something is wrong with the loaded library. .SH "PORTABILITY ISSUES" .TP \fBWindows\fR\0\0\0\0\0 |