tcl-mod_dtcl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@dedasys.com (David N. Welton)
Subject Re: terminating script
Date Thu, 17 Jan 2002 10:51:39 GMT

Argh - sorry, my fault.  I had some testing scripts that were still
interfering with things:-}

Anyway, one suggestion I've seen for things like this is on
comp.lang.tcl is to (ab)use a loop:

foreach foo foo {
        some code
        break

        more code
        break
}

Although I realize that that's not terribly clean, either...

Probably the best thing for you to do, like in the .tcl scripts, is to
wrap your code in procs (that adds a big performance advantage, too).

-- 
David N. Welton
   Consulting: http://www.dedasys.com/
Free Software: http://people.debian.org/~davidw/
   Apache Tcl: http://tcl.apache.org/
     Personal: http://www.efn.org/~davidw/

Mime
View raw message