Version 38 of etdxc

Updated 2007-02-09 20:09:03

http://myweb.tiscali.co.uk/lidokaroma/img/lidokaroma.png

a.k.a. Don Cruickshank. [L1 ] I've worked in IT for over 20 years and since 1989 as a contract analyst/programmer/developer/etc. I've been developing in Tcl/Tk since the late 90s.

My experience is (mostly) in Unix and Microsoft evironments, largely with database development.

I live in the pretty city of Bristol in the south west of England, with my wonderful wife, three beautiful children, strange cat and a lurcher pup.


Some of the (many) things I love about Tcl.

1. True boolean test on a non-bool value (Double toggling a boolean to convert it to a true true value). The business is in the "db eval" statement using !!

    proc SomeTest {x y} {
      if {$x > $y} {
          return [expr "22 / 7"]
      }
      return 0
    }
    ....
    db eval "update Stepper set IsActive = [expr "!![SomeTest $x $y]"] where ....."

2. Boolean toggle

    set a 0
    set a [expr "!$a"]
    set a [expr "!$a"]

Category Person