Artifacts Associated With Ticket 939190ffffffffff
Ticket change [31b4988dc6] (rid 93477) by msofer on 2004-04-21 09:52:52:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized to:
The enclosed patch provides an implementation of TIP #187, slightly modified. It creates a new command [lambda], so that % set p [lambda x {string length $x}] ::tcl::lambda::{x {string length $x}} % info proc tcl::lambda::* ::tcl::lambda::Create {::tcl::lambda::{x {string length $x}}} % $p 1 2 wrong # args: should be "::tcl::lambda::{x {string length $x}} x" % $p bgiul 5 % append p " " ::tcl::lambda::{x {string length $x}} % info proc tcl::lambda::* ::tcl::lambda::Create % $p hvjh 4 % info proc tcl::lambda::* ::tcl::lambda::Create {::tcl::lambda::{x {string length $x}} } % info body $p string length $x Note that the lambda expressions auto cleanup on shimmering (when " " was appended), but are otherwise plain procs. The enclosed patch creates the [lambda] as a builtin; it is also possible to only patch tclObj.c and provide the functionality as a C-extension; alternatively, one could also patch only the .c files, and provide the functionality via a pure tcl extension instead of patching init.tcl - foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "msofer"
- subsystem initialized to: "None"
- title initialized to: "TIP #187:lambda"
- type initialized to: "Patch"
Ticket change [45e72f0bf7] (rid 99421) by msofer on 2004-04-21 16:52:52:
- icomment:
File Added - 84494: lambda.patch
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [68d3b49a39] (rid 103136) by msofer on 2004-04-21 17:17:28:
- icomment:
File Deleted - 84494: File Added - 84496: lambda.patch Logged In: YES user_id=148712 Patch updated, with slightly clearer code.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [3bb650e562] (rid 112792) by msofer on 2004-04-22 00:45:24:
- icomment:
Logged In: YES user_id=148712 Boo ... bad proc names, review needed! % $p hgg 3 % eval $p jhg extra characters after close-brace
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [463a4ade80] (rid 99488) by msofer on 2004-04-22 02:09:21:
- icomment:
File Added - 84566: lambda.patch Logged In: YES user_id=148712 Can't do much about spaces in the name - except proposing safety in eval'ing ... Updated patch, follows the TIP more closely. Now we have % set p [lambda x {string length $x}] ::tcl::lambda x {string length $x} ie, $p's string rep is [list ::tcl::lambda $argList $body] ::tcl::lambda::Create and the modifs to ::unknown are meant to recreate a lambda expression from its string representation, to recover from a possible shimmering; they may not be robust enough for other uses. This is a non-standard hacky way to satisfy the "every value is a string" requisite; not sure how much I like it. - login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Add attachment "lambda.patch" [b5c506867c] (rid 125302) by msofer on 2004-04-22 02:09:21.
Ticket change [4e346327c3] (rid 127184) by msofer on 2004-04-22 02:16:37:
- icomment:
File Deleted - 84496:
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [461a6ea7fb] (rid 99462) by msofer on 2004-04-22 04:55:57:
- icomment:
File Added - 84588: lambda2.patch Logged In: YES user_id=148712 new lambda2.patch: does not use ptr2 in the cmdNameType obj, as some extensions use it for their own purposes. It is now the Command struct itself that knows it should autocleanup, no changes to any public structures.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [fbcd14069f] (rid 108122) by msofer on 2004-04-22 05:17:54:
- icomment:
File Deleted - 84588: File Added - 84592: lambda2.patch
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Add attachment "lambda2.patch" [67c0372bb2] (rid 102943) by msofer on 2004-04-22 05:46:02.
Ticket change [43998f4fd0] (rid 116588) by msofer on 2004-04-22 05:46:02:
- icomment:
File Deleted - 84592: File Added - 84595: lambda2.patch Logged In: YES user_id=148712 updated patch, some stuff goes under ::tcl::unsupported::
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [33c192cc56] (rid 106645) by msofer on 2004-04-23 06:00:54:
- closedate changed to: "2004-04-22T23:00:54"
- closer changed to: "msofer"
- icomment:
Logged In: YES user_id=148712 This has been superseeded by Patch #940207 https://sourceforge.net/tracker/index.php?func=detail&aid=940207&group_id=10894&atid=310894
- login: "msofer"
- mimetype: "text/plain"
- resolution changed to: "Out of Date"
- status changed to: "Closed"
- username: "msofer"