![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.tcl archiveRe: [TCL] Help debugging behavior in new source command
From: Don Porter <dgp@email.nist.gov>
Date: Thu Apr 13 2006 - 17:49:09 CEST
In article <443e700e$1@usenet01.boi.hp.com>, Andrew Falanga wrote:
Let us count the opportunities for improvement...
> rename source _source
Process exit is a pretty severe reaction to a missing file.
> uplevel #0 [list _source] $pathToFile
This should be:
uplevel 1 [list _source $pathToFile]
The revised [list] arguments are in order to support values
The change in the "level" argument makes sure that your replacement
>
Wouldn't it be easier to do:
lappend libraryIndex [file tail $pathToFile]
> }
-- | Don Porter Mathematical and Computational Sciences Division | | donald.porter@nist.gov Information Technology Laboratory | | http://math.nist.gov/~DPorter/ NIST | |______________________________________________________________________|Received on Sun Apr 30 03:10:36 2006 |