![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.tcl archive[TCL] Strange behavior, or so I think, for package require
From: Andrew Falanga <not_real@hp.com>
Date: Mon Apr 03 2006 - 17:28:45 CEST
Hello,
I'm trying to debug why this the following is happening. I have a
if { [lsearch [package names] "*cmdline*"] < 0 } {
if { ![string match "*/path/to/tcllib/*" $auto_path] } {
if { [lsearch [package names] "*cmdline*"] < 0 } {
if { ![string match "*tclxml3.0*" $auto_path] } {
if { [lsearch [package names] "*xml*"] < 0 } {
if { [lsearch [package names] "*cmdline*"] < 0 } {
if { [lsearch [package names] "*cmdline*"] < 0 } {
The conditionals that do nothing but produce output are for debugging
cmdline is not present in package list
Why? By the time of that third output, the package require cmdline
Why does that first call to package require seem to "include" virtually
---------------------------------------------
|