diff options
author | ericm <ericm> | 2000-01-27 19:48:29 (GMT) |
---|---|---|
committer | ericm <ericm> | 2000-01-27 19:48:29 (GMT) |
commit | d8c3ee2177ba3302b1caf7fe451592c210d68212 (patch) | |
tree | 24c3203693a2642f3a3c42276897974f14712b60 /tests/pkg | |
parent | b51a945c65f5f8555db941619e83775ad306b65b (diff) | |
download | tcl-d8c3ee2177ba3302b1caf7fe451592c210d68212.zip tcl-d8c3ee2177ba3302b1caf7fe451592c210d68212.tar.gz tcl-d8c3ee2177ba3302b1caf7fe451592c210d68212.tar.bz2 |
* tests/pkg/samename.tcl: test file for bug #1983
* tests/pkgMkIndex.test:
* library/package.tcl:
Fixed bug #1983, dealing with pkg_mkIndex incorrectly handling
situations with two procs by the same name but in different
namespaces (ie, foo::baz and bar::baz).
Diffstat (limited to 'tests/pkg')
-rw-r--r-- | tests/pkg/samename.tcl | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/pkg/samename.tcl b/tests/pkg/samename.tcl new file mode 100644 index 0000000..8aa5080 --- /dev/null +++ b/tests/pkg/samename.tcl @@ -0,0 +1,25 @@ +package provide football 1.0 + +namespace eval ::pro:: { + # + # export only public functions. + # + namespace export {[a-z]*} +} +namespace eval ::college:: { + # + # export only public functions. + # + namespace export {[a-z]*} +} + +proc ::pro::team {} { + puts "go packers!" + return true +} + +proc ::college::team {} { + puts "go badgers!" + return true +} + |