Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 81c6496a98f2fdf2d550961ea35837a68d76e0cc16c5fc583c660b2f84e60171
Ticket: 0e48e053283e6fb8dcc4ecd183539ae57a31072b
Clarify that [apply] functions are cleaned up
User & Date: anonymous on 2018-03-26 16:21:37
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    The manual page for the [apply] command describes the semantics of the command with a pure Tcl procedure. However, that implementation would never clean up created procedures, leading to memory leaks where the [apply] command is parameterised in, say, a loop. It would be good to mention that, unlike the pure Tcl description, [apply] commands are cleaned up with the reference count system just as with any other Tcl values.
    
    Alternatively the semantics code could be altered to destroy the newly created command before [return].
    
  5. foundin changed to: "8.6"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "0dfe2e6aa820af3598e203fec901fc46f1ba3c95"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "16. Commands A-H"
  15. title changed to: "Clarify that [apply] functions are cleaned up"
  16. type changed to: "Bug"