diff options
author | stanton <stanton> | 1999-04-16 00:46:29 (GMT) |
---|---|---|
committer | stanton <stanton> | 1999-04-16 00:46:29 (GMT) |
commit | 97464e6cba8eb0008cf2727c15718671992b913f (patch) | |
tree | ce9959f2747257d98d52ec8d18bf3b0de99b9535 /tests/pkg/import.tcl | |
parent | a8c96ddb94d1483a9de5e340b740cb74ef6cafa7 (diff) | |
download | tcl-97464e6cba8eb0008cf2727c15718671992b913f.zip tcl-97464e6cba8eb0008cf2727c15718671992b913f.tar.gz tcl-97464e6cba8eb0008cf2727c15718671992b913f.tar.bz2 |
merged tcl 8.1 branch back into the main trunk
Diffstat (limited to 'tests/pkg/import.tcl')
-rw-r--r-- | tests/pkg/import.tcl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/pkg/import.tcl b/tests/pkg/import.tcl new file mode 100644 index 0000000..e7196f5 --- /dev/null +++ b/tests/pkg/import.tcl @@ -0,0 +1,16 @@ +package provide fubar 1.0 + +namespace eval ::fubar:: { + # + # export only public functions. + # + namespace export {[a-z]*} +} + +proc ::fubar::foo {bar} { + puts "$bar" + return true +} + +namespace import ::fubar::foo + |