Re: tcl command "type"
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: tcl command "type"

From: Bryan Oakley <oakley@bardo.clearlight.com>
Date: Sat Dec 31 2005 - 21:03:54 CET

suchodj@wanadoo.fr wrote:
> thank you for helping.
> my idea was the following : i am coding a little application and
> sourcing several files in a sort of main file. In order to check if
> the files were correctly sourced i thaught of dumping them ???

You can also check whether the source failed or not with catch:

     if {[catch {source myfile.tcl] err]} {
         puts "error sourcing myfile.tcl: \"$err\""
     }
Received on Tue Jan 3 03:09:59 2006