Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 48f20270be45fc5c5f5f07e91e529e2911d21ab9
Ticket: 1932618fffffffffffffffffffffffffffffffff
Enhance [proc] for anonymous functions and closures
User & Date: ecky-l on 2008-04-02 20:20:05
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    I would like to request that [proc] becomes a data type in addition to a command, so that procs can be
    
    
    - created on the fly, capturing the current environment and procedure stack
    - created anonymously, e.g. [proc {} {...}] would return a new proc to be used elsewhere.
    - returned by other proc's
    - given as arguments to other procs (including their arguments and the environment in which they were created)
    
    When this s possible, I think it would also be possible to have closures in Tcl and better capabilities for functional programming - which would enhance the language *a lot*
    
    Is it possible to have [proc] as a Tcl_Obj* type?
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "ecky-l"
  10. subsystem changed to: "None"
  11. title changed to:
    Enhance [proc] for anonymous functions and closures
    
  12. type changed to: "RFE"