Overview
| Artifact ID: | 978a29f9d1a869681a43b08a752512bcb2ef1643 |
|---|---|
| Ticket: | 2927535fffffffffffffffffffffffffffffffff
Retrieve last result in interactive mode |
| User & Date: | ferrieux on 2010-01-08 21:06:39 |
Changes
- icomment:
Acknowledging the remark about language vs. interpreter, I refactored the patch so that it now uses a call-back (rather than call-forward) API in history.tcl. So the external API for retrieval is now [history lastresult], and the only affected files are: tclHistory.c and history.{tcl,test,n}.(Yes it is complete with test and doc). As for the final, easy-to-type shortcut, I'm a bit uneasy about hijacking a toplevel variable like $::_ or $::it for obvious compatibility reasons (though again it only touches interactive sessions). A TIP is needed for _that_, while I guess it is not for the current patch. Please review. - login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"