aboutsummaryrefslogtreecommitdiff
path: root/jim_tcl.txt
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2020-01-22 16:55:43 +1000
committerSteve Bennett <steveb@workware.net.au>2020-01-22 16:56:09 +1000
commitb9b2408283b5f7a9dd8edda8e7e946d8ec882879 (patch)
tree02dc2a8536ea7c903c5873f1dc4c4d341d399016 /jim_tcl.txt
parent8041a06372fa1dbbbf58c404bc98096ea2852a17 (diff)
downloadjimtcl-b9b2408283b5f7a9dd8edda8e7e946d8ec882879.zip
jimtcl-b9b2408283b5f7a9dd8edda8e7e946d8ec882879.tar.gz
jimtcl-b9b2408283b5f7a9dd8edda8e7e946d8ec882879.tar.bz2
docs: make it clear that the package version is ignored
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jim_tcl.txt')
-rw-r--r--jim_tcl.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/jim_tcl.txt b/jim_tcl.txt
index c342ad1..4c9553b 100644
--- a/jim_tcl.txt
+++ b/jim_tcl.txt
@@ -3403,12 +3403,13 @@ package
+*package provide* 'name ?version?'+
Indicates that the current script provides the package named +'name'+.
-If no version is specified, '1.0' is used.
+*Note*: The supplied version is ignored. All packages are registered as version 1.0
+(it is simply accepted for compatibility purposes).
-Any script which provides a package may include this statement
+Any script that provides a package may include this statement
as the first statement, although it is not required.
-+*package require* 'name ?version?'*+
++*package require* 'name ?version?'+
Searches for the package with the given +'name'+ by examining each path
in '$::auto_path' and trying to load '$path/$name.so' as a dynamic extension,