From: Harald O. <har...@el...> - 2018-02-19 19:13:55
|
Hi Trevor, thank you for the light-speed answer ! For me, a pointer on the wiki is enough. IMHO the TIP pointer should be corrected, as we try to keep the history. Maybe, it might be a good idea to include companion documents of docs also in the fossil repository ? Thank you, Harald Am 19.02.2018 um 11:58 schrieb Trevor Davel (Twylite): > Hi Harald, > > Fortunately I can respond quite quickly on this as I received a similar > query a few months back. I can't (easily) supply you with the original > try-1.tcl, as it is in a backup somewhere from before my web site was > hacked. But I think I can do better :) > > In early (pre-alpha?) versions of 8.6 the [try] implementation - later > converted to C & bytecode - was in pure Tcl. DKF took that version and > put it into tcllib in the 'modules/try' package. Here's a direct link to > the source code: https://core.tcl.tk/tcllib/artifact/670fcb12e205d925, > and the tcllib documentation: > https://core.tcl.tk/tcllib/doc/trunk/embedded/www/tcllib/files/modules/try/tcllib_try.html > . > > I also have a pure-Tcl implementation in my repository at > http://dev.crypt.co.za/incubator/doc/trunk/index.wiki (.tm link > http://dev.crypt.co.za/incubator/artifact/5cfc4eb8edb8766759e00384a76f74aa7e88881c > ). If I remember correctly, I used this version to develop the initial > test suite for 8.6 [try], and later adjusted it to match the bytecode > implementation (which slightly changed how exceptions were chained). > > There is also an implementation at the bottom of > http://wiki.tcl.tk/21608 , which may be the original try-1.tcl. > > I've updated http://wiki.tcl.tk/8293 ('try') with the statement "TIP > #329 added try to Tcl 8.6. The tcllib module try provides a > forward-compatibility implementation of TIP 329 for Tcl 8.5." with > appropriate links. I'm not sure of the process to update a State=Final TIP? > > Kind regards, > Trevor > > On 2018/02/19 12:27, Harald Oehlmann wrote: >> Dear Trevor, >> >> thank you for TIP329, the try command. >> >> To emulate the try command with TCL 8.5, I wanted to use your tcl-only >> version referenced in the TIP: >> >> http://www.crypt.co.za/pub/try-1.tcl >> >> Unfortunately, the link is dead. >> >> Couldn't you put a tcl-only version of try onto the wiki and chage the >> link to it ? >> >> Thank you, >> Harald >> > |