Share

Tcl

Code

Programming Languages: C, Tcl

License: BSD License

Repositories

browse code, statistics, last commit on 2010-01-06 cvs -d:pserver:anonymous@tcl.cvs.sourceforge.net:/cvsroot/tcl login

cvs -z3 -d:pserver:anonymous@tcl.cvs.sourceforge.net:/cvsroot/tcl co -P modulename

RSS Feed

This widget needs to be configured before it can be displayed.

Show:

What's happening?

  • Comment: Retrieve last result in interactive mode

    If you're suggesting an alternative API please voice it clearly. The patch is confined to tclMain.c and tclHistory.c which are parts of tclsh, and done so that non-interactive execution isn't penalized. Any form of criticism welcome here; I'm not too eager to TIP that now, given the current pipeline of unvoted TIP / uncommitted patches that I have :/.

    2010-01-07 14:50:17 UTC by ferrieux

  • Comment: Retrieve last result in interactive mode

    The Standard ML language uses the global 'it' variable for the same purpose. Note also that these should be considered to be features of tclsh/wish and not the Tcl language.

    2010-01-07 14:35:10 UTC by dkf

  • Comment: Retrieve last result in interactive mode

    The attached patch does just that. Implementation: it saves the interp's result object in the assoc area. Note that it is done at object level, not string, so that large values are efficiently handled. It does prorogate the life of the result object until the end of the next interactive command, but that's the price to pay while time machines are not affordable.

    2010-01-07 13:58:47 UTC by ferrieux

  • Retrieve last result in interactive mode

    As suggested on comp.lang.tcl: http://groups.google.com/group/comp.lang.tcl/browse_frm/thread/c78f6d63471cccb7/5ddedc4e11bfa754#5ddedc4e11bfa754 it could be nice to be able to retrieve the last interactive command's result or error, for debugging purposes in situations where things are not easily reproducible. A simple API would be a [::tcl::lastresult] command.

    2010-01-07 13:55:13 UTC by ferrieux

  • Comment: provide helper function to get http headers

    A new helper function ::http::header would indeed be the simplest, returning basically the same key-value list (isomorphous to a dict BTW) as ::meta but with [string tolower] applied to the keys.

    2010-01-07 09:29:47 UTC by ferrieux

  • provide helper function to get http headers

    The http package puts the response headers into the meta element of the state array exactly as they are received from the server. If a program needs to get a specific well-known header (i.e., Location) they must search the meta array in a case-insensitive manner rather than just accessing the keys. The requested feature is to provide a case-insensitive lookup into the meta array, either...

    2010-01-06 22:44:10 UTC by dvrsn

  • Tcl

    nijtmans committed patchset 11794 of module tcl to the Tcl CVS repository, changing 4 files.

    2010-01-06 22:02:04 UTC by nijtmans

  • Tcl

    nijtmans committed patchset 42 of module libtommath to the Tcl CVS repository, changing 1 files.

    2010-01-06 21:35:25 UTC by nijtmans

  • Tcl

    nijtmans committed patchset 11793 of module tcl to the Tcl CVS repository, changing 10 files.

    2010-01-06 21:35:21 UTC by nijtmans

  • Tcl

    dgp committed patchset 11791 of module tcl to the Tcl CVS repository, changing 3 files.

    2010-01-06 16:58:33 UTC by dgp

Our Numbers