CL 5.7 upgrade from 5.4 — Tcl 8.4 — possible gotcha

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf CL 5.7 upgrade from 5.4 — Tcl 8.4 — possible gotcha

  • Creator
    Topic
  • #51466
    Troy Morton
    Participant

    I don’t know if anyone else has run into this yet, but we are in the process of testing Cloverleaf 5.7 (upgrading from 5.4) and we ran into this interesting error when testing some of our TPS procs.

    Code:

         errorInfo: ‘
    extra switch pattern with no body
       while executing
    “switch -exact — $mode {
           start {

    The problem turned out to be comments embedded between the switch bodies like this:

    Code:

    switch -exact — $mode {

      start {
          …code here…
      } ;# End of Start Section

      run {
          …run code here…
      } ;# End of Run Section

      shutdown {
          …shutdown code here…
      } ;# End of Shutdown Section

      default {
      }

    We removed the comments “;# End of

    Section” that fell after the end of one section but before the next section and that fixed the problem.

Viewing 0 reply threads
  • Author
    Replies
    • #70413
      Jim Kosloskey
      Participant

      Yes we just went back and corrected that where necessary for our 5.6 upgrade.

      email: jim.kosloskey@jim-kosloskey.com

Viewing 0 reply threads
  • The forum ‘Cloverleaf’ is closed to new topics and replies.

Forum Statistics

Registered Users
5,024
Forums
28
Topics
9,178
Replies
33,935
Topic Tags
260