Re: try... query

Liste des GroupesRevenir à cl tcl 
Sujet : Re: try... query
De : vivid.tree7955 (at) *nospam* fastmail.com (Petro Kazmirchuk)
Groupes : comp.lang.tcl
Date : 08. Dec 2024, 11:42:57
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vj3t7g$3o5sn$1@dont-email.me>
References : 1 2 3 4 5 6
User-Agent : Mozilla Thunderbird
On 08/12/2024 00:02, Alan Grunwald wrote:
On 07/12/2024 13:36, Harald Oehlmann wrote:
Am 06.12.2024 um 21:35 schrieb Alan Grunwald:
On 06/12/2024 20:12, Alan Grunwald wrote:
On 06/12/2024 17:59, Ralf Fassel wrote:
* Alan Grunwald <nospam.nurdglaw@gmail.com>
 <even more helpful context removed>
 
>
Yes, the magic here is, that the error dict contains "-level 0".
This does not exit the proc and thus, the outer try is also executed.
Take care,
 Thanks Harald,
 I have a vague memory that I was including a -level flag on the return statement in the past when "issues emerged". I shall keep my fingers crossed that I remember this discussion when strange things happen with this technique in the future.
 Alan
 
I find the "defer" package in Tcllib very useful to achieve RAII in Tcl
https://core.tcl-lang.org/tcllib/doc/trunk/embedded/md/tcllib/files/modules/defer/defer.md

Date Sujet#  Auteur
6 Dec 24 * try... query11Alan Grunwald
6 Dec 24 +* Re: try... query2Harald Oehlmann
6 Dec 24 i`- Re: try... query1Alan Grunwald
6 Dec 24 +- Re: try... query1Harald Oehlmann
6 Dec 24 +- Re: try... query1Christian Gollwitzer
6 Dec 24 `* Re: try... query6Ralf Fassel
6 Dec 24  `* Re: try... query5Alan Grunwald
6 Dec 24   `* Re: try... query4Alan Grunwald
7 Dec 24    `* Re: try... query3Harald Oehlmann
8 Dec 24     `* Re: try... query2Alan Grunwald
8 Dec 24      `- Re: try... query1Petro Kazmirchuk

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal