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
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- 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? - foundin changed to: "None"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "ecky-l"
- subsystem changed to: "None"
- title changed to:
Enhance [proc] for anonymous functions and closures
- type changed to: "RFE"