Anonymous user
Currying: Difference between revisions
→{{header|Tcl}}: Some more notes
(→Tcl: Added description) |
(→{{header|Tcl}}: Some more notes) |
||
Line 204:
puts [addone 6]; # => 7</lang>
Tcl doesn't support automatic creation of curried functions though; the general variadic nature of a large proportion of Tcl commands makes that impractical.
===History===
The type of aliases used here are a simple restriction of general inter-interpreter aliases to the case where both the source and target interpreter are the current one; these aliases are a key component of the secure interpreter mechanism introduced in Tcl 7.6, and are the mechanism used to allow access to otherwise-insecure behavior from a secure context (e.g., to write to a ''particular'' file, but not any old file).
|