Skip to content
Tcl Source Code History Of Ticket 1078760fffffffff
Login

History Of Ticket 1078760fffffffff

Artifacts Associated With Ticket 1078760fffffffff

  1. Ticket change [e828573f88] (rid 104605) by wildcard_25 on 2004-12-04 05:40:22:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Attached patch removes the .ta macro (uses em spaces 
      for tab, only inches and centimetres are supported by 
      man2html2 and man2help2).
      
      Moved the comments in the code example to whole lines 
      as per style guide (.ta macro now no longer needed).
      
      
    4. foundin initialized to: "obsolete: 8.5a2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "wildcard_25"
    9. subsystem initialized to: "16. Commands A-H"
    10. title initialized to: "foreach.n: bad distance "32""
    11. type initialized to: "Bug"
  2. Add attachment "foreach.n.patch" [0981788215] (rid 113667) by wildcard_25 on 2004-12-04 12:40:24.

  3. Ticket change [29263edcc9] (rid 88822) by wildcard_25 on 2004-12-04 12:40:30:

    1. icomment:
      
      
      File Added - 111243: foreach.n.patch
      
      
      
    2. login: "wildcard_25"
    3. mimetype: "text/plain"
    4. username: "wildcard_25"
  4. Ticket change [c5978c0d19] (rid 112025) by dkf on 2004-12-05 04:28:33:

    1. closedate changed to: "2004-12-04T21:28:33"
    2. closer changed to: "dkf"
    3. icomment:
      Logged In: YES 
      user_id=79902
      
      This makes the example less clear. If it bugs you, submit a
      patch to fix man2* (perhaps by ignoring it?) instead.
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Rejected"
    7. status changed to: "Closed"
    8. username: "dkf"
  5. Ticket change [4260f31797] (rid 116367) by wildcard_25 on 2004-12-06 08:04:19:

    1. icomment:
      Logged In: YES 
      user_id=596509
      
      Another couple of possibilities that don't cause errors 
      with the existing doc converters.
      
      change ".ta 32" to ".ta 3i" or ".ta 4i"
      
      or
      add blank lines before comments in patch to get (code is a 
      lot clearer than in patch)
      
      .CS
      # Odd numbers first, for fun!
      set values {1 3 5 7 2 4 6 8}
      
      # Neat-looking header
      puts "Value\\tSquare\\tCube"
      
      # Now loop and print...
      \fBforeach\fR x $values {
          puts " $x\\t [expr {$x**2}]\\t [expr {$x**3}]"
      }
      .CE
      
      or
      use the style guide recommendation of blank lines before 
      and after comments [6.2](missed that in the guide the 
      first time as the first example with comments doesn't have 
      blank lines [5.2])
      
      .CS
      # Odd numbers first, for fun!
      
      set values {1 3 5 7 2 4 6 8}
      
      # Neat-looking header
      
      puts "Value\\tSquare\\tCube"
      
      # Now loop and print...
      
      \fBforeach\fR x $values {
          puts " $x\\t [expr {$x**2}]\\t [expr {$x**3}]"
      }
      .CE
      
      or
      if none of these are acceptable I'll submit a patch for 
      man2* to calculate em spaces for tabs :)
      
      
    2. login: "wildcard_25"
    3. mimetype: "text/plain"
    4. resolution changed to: "None"
    5. status changed to: "Open"
    6. username: "wildcard_25"
  6. Ticket change [c900b1ff96] (rid 122209) by dkf on 2004-12-08 03:49:42:

    1. closedate changed to: "2004-12-07T20:49:42"
    2. closer changed to: "dkf"
    3. icomment:
      Logged In: YES 
      user_id=79902
      
      Hmm, 3i gives about the right effect. Changed to that.
      
      (FWIW, the style guide is good for production code, but
      would not produce good code for a short example on a manual
      page because the comments would end up dominating everything
      else.)
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dkf"