Travis Farrar

Forum Replies Created

Viewing 3 replies – 1 through 3 (of 3 total)
  • Author
    Replies
  • in reply to: New GUI for Cloverleaf 6.1 #81391
    Travis Farrar
    Participant

      We are in the process of upgrading from 5.8 to 6.1. Comparing to what we are used to, the monochrome style does make it difficult to view certain things. One example in particular that I noticed was in the Translation Configurator where you have the option to Deactivate/Activate a statement. It’s harder to tell now at a glance which statements have been deactivated since they are all in gray. Deactivated statements now are just slightly less gray than the other statements whereas before you had that nice contrast against the other colors. I’m sure there’s other things I will run across as I use it more. In short, I would also welcome a “skins” feature.

      in reply to: Possible TCL Bug with String Comparison in 5.8.4? #74890
      Travis Farrar
      Participant

        I’ve been going through our Tcl procs and changing any string comparisons that use the == operator and instead using the alternative suggestions.  Interesting that this works as expected from a Tcl shell prompt. I guess it’s just a bug with hcitcl.

        in reply to: Possible TCL Bug with String Comparison in 5.8.4? #74887
        Travis Farrar
        Participant

          Thanks for all the responses. It looks like it is better to use eq for strings which I was unaware of until now and I have modified the code to do that. It does work now as expected.

          I guess I was confused because I thought the == could pretty much be used for anything including strings. We have a book “Tcl and the Tk Toolkit” written by John K. Ousterhout, the guy who actually created Tcl and Tk and in this book there is a table which says the operand types for the == are int, real, string. So I thought it simply would have treated the + and – as strings.

          However, since eq appears to be best practice I’ll try to use that from now on. Thanks again guys!

        Viewing 3 replies – 1 through 3 (of 3 total)