Skip to content
Tcl Source Code History Of Ticket f8bc8efdf5
Login

History Of Ticket f8bc8efdf5

Artifacts Associated With Ticket f8bc8efdf5

  1. Ticket change [91ec695542] (rid 148450) by neirbowj on 2016-08-23 22:32:46:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      The command signatures for lappend and linsert are presented in Lesson 15 of the tutorial ("Adding & Deleting members of a list") as follows.
      
      lappend listName ?arg1 arg2 ... argn?
      linsert listName index arg1 ?arg2 ... argn?
      
      The latter should read like this instead.
      
      linsert list index arg1 ?arg2 ... argn?
      
      According to the tutorial, the following interactive session should set `otherlist` to `{{one} {oneandahalf} {two} {three} {four}}` and return `two` from the final `lindex` command.
      
          % set mylist [list one two three]
          one two three
          % lappend mylist four
          one two three four
          % lindex $mylist 3
          four
          % set otherlist [linsert mylist 1 oneandahalf]
          mylist oneandahalf
          % lindex $otherlist 2
          %
      
    5. foundin initialized to: "8.5"
    6. is_private initialized to: "0"
    7. login: "neirbowj"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "1c2c806ffe757c7d753b24f4d1a4e6c176ba5348"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "neirbowj"
    14. subsystem initialized to: "75. Tutorial"
    15. title initialized to:
      Tutorial lesson 15 uses listName inconsistently with lappend/linsert
      
    16. type initialized to: "Bug"
  2. Ticket change [6678727faf] (rid 148451) by neirbowj on 2016-08-24 00:03:17:

    1. comment changed to:
      The command signatures for lappend, linsert, and lreplace are presented in Lesson 15 of the tutorial ("Adding & Deleting members of a list") as follows.
      
      lappend listName ?arg1 arg2 ... argn?
      linsert listName index arg1 ?arg2 ... argn?
      lreplace listName first last ?arg1 ... argn?
      
      The latter should read like this instead.
      
      linsert list index arg1 ?arg2 ... argn?
      lreplace list first last ?arg1 ... argn?
      
      According to the tutorial, the following interactive session should set `otherlist` to `{{one} {oneandahalf} {two} {three} {four}}`, return `two` from the corresponding `lindex` command, set `replacementlist` to {{one} {two} {tres} {cuatro}}`, and return `cuatro` from the corresponding `lindex` command.
      
          % set mylist [list one two three]
          one two three
          % lappend mylist four
          one two three four
          % lindex $mylist 3
          four
          % set otherlist [linsert mylist 1 oneandahalf]
          mylist oneandahalf
          % lindex $otherlist 2
          % set replacementlist [lreplace mylist 2 3 tres cuatro]
          mylist tres cuatro
          % lindex $replacementlist 3
          %
      
    2. icomment:
      Edited title and description to cover `lreplace` too.
      
    3. login: "neirbowj"
    4. mimetype: "text/plain"
    5. title changed to:
      Tutorial lesson 15 uses listName inconsistently with lappend/linsert/lreplace