Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

Lady Luck brings added income today. Lady friend takes it away tonight.


comp / comp.lang.tcl / Re: Show argument values in bgerror

SubjectAuthor
* Show argument values in bgerroralexandru
+* Re: Show argument values in bgerroret99
|`- Re: Show argument values in bgerroralexandru
+* Re: Show argument values in bgerrorHarald Oehlmann
|`* Re: Show argument values in bgerroralexandru
| `* Re: Show argument values in bgerrorHarald Oehlmann
|  `* Re: Show argument values in bgerroralexandru
|   `* Re: Show argument values in bgerrorHarald Oehlmann
|    +- Re: Show argument values in bgerroralexandru
|    `* Re: Show argument values in bgerrorrene
|     `- Re: Show argument values in bgerrorHarald Oehlmann
`- Re: Show argument values in bgerrorDon Porter

1
Subject: Show argument values in bgerror
From: alexandru
Newsgroups: comp.lang.tcl
Organization: novaBBS
Date: Tue, 17 Sep 2024 21:31 UTC
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: alexandru.dadalau@meshparts.de (alexandru)
Newsgroups: comp.lang.tcl
Subject: Show argument values in bgerror
Date: Tue, 17 Sep 2024 21:31:25 +0000
Organization: novaBBS
Message-ID: <b42edc7a9bab2a468f2694eda7a2df32@www.novabbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="2448556"; mail-complaints-to="usenet@i2pn2.org";
posting-account="0Z5XV6kwM7Cos/IbgWfXZAYsazigEecpjCfqz3CX7rU";
User-Agent: Rocksolid Light
X-Rslight-Posting-User: 916f90664d3de2199c7a6231aba6924e4b1593d3
X-Spam-Checker-Version: SpamAssassin 4.0.0
X-Rslight-Site: $2y$10$SQpjYn/Wmxyi8ayBJaoMyuZuEf2fV2fzTjMMJ95Dacv8om8Sl6sc2
View all headers

I have this ::bgerror function to help debug errors in program flow:

proc ::bgerror {message} {
global errorInfo
puts "*** START OF ERROR MESSAGE ***\n$message\n$errorInfo\n*** END OF
ERROR MESSAGE ***"
}

The issue is, that the errorInfo does not show the values of the
arguments of called procedures in the stack.
Thus it's often not clear which arguments lead the the error.
Is there a trick how to show the values with which the procedures were
called in the stack prior to the error?

Many thanks
Alexandru

Subject: Re: Show argument values in bgerror
From: et99
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Wed, 18 Sep 2024 02:32 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: et99@rocketship1.me (et99)
Newsgroups: comp.lang.tcl
Subject: Re: Show argument values in bgerror
Date: Tue, 17 Sep 2024 19:32:55 -0700
Organization: A noiseless patient Spider
Lines: 65
Message-ID: <vcde4n$3tbui$1@dont-email.me>
References: <b42edc7a9bab2a468f2694eda7a2df32@www.novabbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 18 Sep 2024 04:32:55 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="d2b8cdfd620b59c4d9bd094d3220daf9";
logging-data="4108242"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19qnkLJMtGJnYAhsRdAGBYY"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:IE9eCmUb+wa83xh7npRnwfd4fsM=
In-Reply-To: <b42edc7a9bab2a468f2694eda7a2df32@www.novabbs.com>
Content-Language: en-US
View all headers

On 9/17/2024 2:31 PM, alexandru wrote:
> I have this ::bgerror function to help debug errors in program flow:
>
> proc ::bgerror {message} {
>  global errorInfo
>  puts "*** START OF ERROR MESSAGE ***\n$message\n$errorInfo\n*** END OF
> ERROR MESSAGE ***"
> }
>
> The issue is, that the errorInfo does not show the values of the
> arguments of called procedures in the stack.
> Thus it's often not clear which arguments lead the the error.
> Is there a trick how to show the values with which the procedures were
> called in the stack prior to the error?
>
> Many thanks
> Alexandru

Here's some test code I cobbled together, I think there may be something here that does what you want. The "info level [info level]" might be just what you need, if issued at the proper uplevel. Note, the outer info has 2 args, the inner info only 1 and that's intentional. You likely would iterate on uplevel's and toss ones that give an error.

console show
proc foo {} {foo2 11 22 33}

proc foo2 {a b c} {set x 1; set y 2; foo3}

proc foo3 {} {
set level [info frame]
puts "level= |$level| "
set vars [ \
uplevel 1 {
set _vars [info vars]
puts "_vars= |$_vars| level= [info frame] args= [info level [info level]]"
foreach _var $_vars {
puts " _var= |$_var| "
lappend _varsx "$_var = [set $_var]"
}
set _varsx
}
]
puts "vars= |$vars| "
puts [join $vars \n]
}
if [catch {
foo
} err_code] {
puts $err_code
}

output:

level= |9|
_vars= |a b c x y| level= 10 args= foo2 11 22 33
_var= |a|
_var= |b|
_var= |c|
_var= |x|
_var= |y|
vars= |{a = 11} {b = 22} {c = 33} {x = 1} {y = 2}|
a = 11
b = 22
c = 33
x = 1
y = 2

Subject: Re: Show argument values in bgerror
From: Harald Oehlmann
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Wed, 18 Sep 2024 07:14 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wortkarg3@yahoo.com (Harald Oehlmann)
Newsgroups: comp.lang.tcl
Subject: Re: Show argument values in bgerror
Date: Wed, 18 Sep 2024 09:14:34 +0200
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <vcdukq$3vk7h$2@dont-email.me>
References: <b42edc7a9bab2a468f2694eda7a2df32@www.novabbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 18 Sep 2024 09:14:34 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="80665d74369c5ed68fd8bfbd0399f919";
logging-data="4182257"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+lFCS1kFAvSdpwRsgijo3w"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:HP05Y914NRKV7umYIuztTbt1RMk=
Content-Language: en-GB
In-Reply-To: <b42edc7a9bab2a468f2694eda7a2df32@www.novabbs.com>
View all headers

Am 17.09.2024 um 23:31 schrieb alexandru:
> I have this ::bgerror function to help debug errors in program flow:
>
> proc ::bgerror {message} {
>  global errorInfo
>  puts "*** START OF ERROR MESSAGE ***\n$message\n$errorInfo\n*** END OF
> ERROR MESSAGE ***"
> }
>
> The issue is, that the errorInfo does not show the values of the
> arguments of called procedures in the stack.
> Thus it's often not clear which arguments lead the the error.
> Is there a trick how to show the values with which the procedures were
> called in the stack prior to the error?
>
> Many thanks
> Alexandru

info errorstack ?

% proc e {v} {incr v}
% e a
expected integer but got "a"
% set errorInfo
expected integer but got "a"
while executing
"incr v"
(procedure "e" line 1)
invoked from within
"e a"
% info errorstack
INNER incrScalar1Imm CALL {e a}

Harald

Subject: Re: Show argument values in bgerror
From: alexandru
Newsgroups: comp.lang.tcl
Organization: novaBBS
Date: Wed, 18 Sep 2024 10:24 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: alexandru.dadalau@meshparts.de (alexandru)
Newsgroups: comp.lang.tcl
Subject: Re: Show argument values in bgerror
Date: Wed, 18 Sep 2024 10:24:23 +0000
Organization: novaBBS
Message-ID: <3addabd13b6482be662b35763a420e5a@www.novabbs.com>
References: <b42edc7a9bab2a468f2694eda7a2df32@www.novabbs.com> <vcde4n$3tbui$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="2510975"; mail-complaints-to="usenet@i2pn2.org";
posting-account="0Z5XV6kwM7Cos/IbgWfXZAYsazigEecpjCfqz3CX7rU";
User-Agent: Rocksolid Light
X-Rslight-Site: $2y$10$G4Z9OHhO09YOCPOyWBB4T.QTSDkAblahuk3Ko23be3iAqwffsmUpq
X-Spam-Checker-Version: SpamAssassin 4.0.0
X-Rslight-Posting-User: 916f90664d3de2199c7a6231aba6924e4b1593d3
View all headers

Wow, thanks for the input. I'll try to use it to solve the problem.

Regards
Alexandru

Subject: Re: Show argument values in bgerror
From: alexandru
Newsgroups: comp.lang.tcl
Organization: novaBBS
Date: Wed, 18 Sep 2024 10:23 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: alexandru.dadalau@meshparts.de (alexandru)
Newsgroups: comp.lang.tcl
Subject: Re: Show argument values in bgerror
Date: Wed, 18 Sep 2024 10:23:34 +0000
Organization: novaBBS
Message-ID: <6124e3922c51988d84ad3d7945d8e5bd@www.novabbs.com>
References: <b42edc7a9bab2a468f2694eda7a2df32@www.novabbs.com> <vcdukq$3vk7h$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="2510975"; mail-complaints-to="usenet@i2pn2.org";
posting-account="0Z5XV6kwM7Cos/IbgWfXZAYsazigEecpjCfqz3CX7rU";
User-Agent: Rocksolid Light
X-Rslight-Site: $2y$10$uuTvR7BUeNzmreOnigVDwOUpAbwu8fdFzkYz5hw7Oa35HMJBXchri
X-Rslight-Posting-User: 916f90664d3de2199c7a6231aba6924e4b1593d3
X-Spam-Checker-Version: SpamAssassin 4.0.0
View all headers

Hi Harald,

I'll use your example with small changes to explain the issue:

proc e {v} {incr v}
set x "a"
e $x
puts $errorInfo

will output:

expected integer but got "a"
while executing
"incr v"
(procedure "e" line 1)
invoked from within
"e $x"
(file "C:/arbeit/MESHPARTS-Software/test3.tcl" line 4)
invoked from within
"source -encoding utf-8 C:/arbeit/MESHPARTS-Software/test3.tcl"

As you can see, upstream procedure calls are printed with dollar sign,
unevaluated values.
In more complex nested calls, the information about arguments gets lost
and errorInfo does not show which argument values were used.

Subject: Re: Show argument values in bgerror
From: Harald Oehlmann
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Wed, 18 Sep 2024 11:50 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wortkarg3@yahoo.com (Harald Oehlmann)
Newsgroups: comp.lang.tcl
Subject: Re: Show argument values in bgerror
Date: Wed, 18 Sep 2024 13:50:21 +0200
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <vceept$3vk7h$4@dont-email.me>
References: <b42edc7a9bab2a468f2694eda7a2df32@www.novabbs.com>
<vcdukq$3vk7h$2@dont-email.me>
<6124e3922c51988d84ad3d7945d8e5bd@www.novabbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 18 Sep 2024 13:50:22 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="80665d74369c5ed68fd8bfbd0399f919";
logging-data="4182257"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19NgmDnDNXPNEUaYub0+JRr"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:/PRs2c0mhhH/b/f2s+DbswZAXg8=
Content-Language: en-GB
In-Reply-To: <6124e3922c51988d84ad3d7945d8e5bd@www.novabbs.com>
View all headers

Am 18.09.2024 um 12:23 schrieb alexandru:
> As you can see, upstream procedure calls are printed with dollar sign,
> unevaluated values.
> In more complex nested calls, the information about arguments gets lost
> and errorInfo does not show which argument values were used.

That is exactly what "info errorstack" is about.
See, that the "a" is substituted as argument "v".
It only works for items putting something on the call stack, so, it will
not help for your eval example. But you get the values supplied to all
procedures...

Take care,
Harald

Subject: Re: Show argument values in bgerror
From: alexandru
Newsgroups: comp.lang.tcl
Organization: novaBBS
Date: Wed, 18 Sep 2024 13:21 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: alexandru.dadalau@meshparts.de (alexandru)
Newsgroups: comp.lang.tcl
Subject: Re: Show argument values in bgerror
Date: Wed, 18 Sep 2024 13:21:12 +0000
Organization: novaBBS
Message-ID: <220612c34ec02644369c013928cbe5c4@www.novabbs.com>
References: <b42edc7a9bab2a468f2694eda7a2df32@www.novabbs.com> <vcdukq$3vk7h$2@dont-email.me> <6124e3922c51988d84ad3d7945d8e5bd@www.novabbs.com> <vceept$3vk7h$4@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="2527168"; mail-complaints-to="usenet@i2pn2.org";
posting-account="0Z5XV6kwM7Cos/IbgWfXZAYsazigEecpjCfqz3CX7rU";
User-Agent: Rocksolid Light
X-Spam-Checker-Version: SpamAssassin 4.0.0
X-Rslight-Posting-User: 916f90664d3de2199c7a6231aba6924e4b1593d3
X-Rslight-Site: $2y$10$J.o7Rr3mOcbk9PwMltDmX.NRBFcUkGbyTZZN7l7TUQ7GMA3s7G2Ry
View all headers

Here is the errorInfo of a true life situation.
The value of "val" is not output.
Maybe it should and it was intended so, but it's not.
So it's a bug then...

*** ERROR ***
Time: Monday, das 16 von September, 2024, um 13:24:37
integer value too large to represent
while executing
"expr {round($val*(10.0**($decimals+3)))/(10.0**$decimals)}"
(procedure "NumberReadmm" line 5)
invoked from within
"NumberReadmm $contact_offset 6"
(procedure "ContactOffsetFormat" line 7)
invoked from within
"ContactOffsetFormat $contact_offset_min"
(procedure "UIRelationApplyContactOffset" line 45)
invoked from within
"UIRelationApplyContactOffset %W"
invoked from within
".valid.notebook.f5.buttons.b2 invoke "
invoked from within
".valid.notebook.f5.buttons.b2 instate !disabled {
valid.notebook.f5.buttons.b2 invoke } "
invoked from within
".valid.notebook.f5.buttons.b2 instate pressed {
valid.notebook.f5.buttons.b2 state !pressed;
valid.notebook.f5.buttons.b2 instate !disabled { .valid..."
(command bound to event)

Subject: Re: Show argument values in bgerror
From: Don Porter
Newsgroups: comp.lang.tcl
Organization: ACMD ITL NIST
Date: Wed, 18 Sep 2024 13:46 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: donald.porter@nist.gov (Don Porter)
Newsgroups: comp.lang.tcl
Subject: Re: Show argument values in bgerror
Date: Wed, 18 Sep 2024 09:46:54 -0400
Organization: ACMD ITL NIST
Lines: 29
Message-ID: <vcelke$309g$1@dont-email.me>
References: <b42edc7a9bab2a468f2694eda7a2df32@www.novabbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 18 Sep 2024 15:46:54 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="1b37109579552d6d02e215016d04884c";
logging-data="98608"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19NlFpB97ZtJLx/JvMa/Fox6EWefldySjE="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:A5kB4SG6LLktolciV//OBA4+zWE=
In-Reply-To: <b42edc7a9bab2a468f2694eda7a2df32@www.novabbs.com>
Content-Language: en-US
View all headers

The [interp bgerror] command has been available since the release
of Tcl 8.5.0 in 2007. No one should be continuing to struggle against
the deficits of the [bgerror] facility.

On 9/17/24 17:31, alexandru wrote:
> I have this ::bgerror function to help debug errors in program flow:
>
> proc ::bgerror {message} {
>  global errorInfo
>  puts "*** START OF ERROR MESSAGE ***\n$message\n$errorInfo\n*** END OF
> ERROR MESSAGE ***"
> }
>
> The issue is, that the errorInfo does not show the values of the
> arguments of called procedures in the stack.
> Thus it's often not clear which arguments lead the the error.
> Is there a trick how to show the values with which the procedures were
> called in the stack prior to the error?
>
> Many thanks
> Alexandru

--
| Don Porter Applied and Computational Mathematics Division |
| donald.porter@nist.gov Information Technology Laboratory |
| http://math.nist.gov/~DPorter/ NIST |
|______________________________________________________________________|

Subject: Re: Show argument values in bgerror
From: Harald Oehlmann
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Wed, 18 Sep 2024 14:54 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wortkarg3@yahoo.com (Harald Oehlmann)
Newsgroups: comp.lang.tcl
Subject: Re: Show argument values in bgerror
Date: Wed, 18 Sep 2024 16:54:35 +0200
Organization: A noiseless patient Spider
Lines: 56
Message-ID: <vcepjb$3vk7h$5@dont-email.me>
References: <b42edc7a9bab2a468f2694eda7a2df32@www.novabbs.com>
<vcdukq$3vk7h$2@dont-email.me>
<6124e3922c51988d84ad3d7945d8e5bd@www.novabbs.com>
<vceept$3vk7h$4@dont-email.me>
<220612c34ec02644369c013928cbe5c4@www.novabbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 18 Sep 2024 16:54:35 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="80665d74369c5ed68fd8bfbd0399f919";
logging-data="4182257"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18NW/9ks+xvw9omt9s6bp4N"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:CefRfeeupDAxRTwzLPO4iJWW9tY=
In-Reply-To: <220612c34ec02644369c013928cbe5c4@www.novabbs.com>
Content-Language: en-GB
View all headers

Am 18.09.2024 um 15:21 schrieb alexandru:
> Here is the errorInfo of a true life situation.
> The value of "val" is not output.
> Maybe it should and it was intended so, but it's not.
> So it's a bug then...

Alexandru,
it is not a bug. I don't speak about $::errorInfo, but "info
errorstack", or the "-errorstack" component of the error dict.

Here is a complete example as proposed by Don (thanks !):

proc bgerrorhandler {message errordict} {
puts "*** START OF ERROR MESSAGE ***"
puts $message
puts "*** ERROR INFO ***"
puts [dict get $errordict -errorinfo]
puts "*** ERROR STACK ***"
foreach {call arg} [dict get $errordict -errorstack] {
puts "$call:$arg"
}
puts "*** END OF ERROR MESSAGE ***"
} interp bgerror "" bgerrorhandler
proc e1 {v} {incr v}
proc e2 {v} {e1 $v}
after idle {e2 a}

This gives the output:
*** START OF ERROR MESSAGE ***
expected integer but got "a"
*** ERROR INFO ***
expected integer but got "a"
while executing
"incr v"
(procedure "e1" line 1)
invoked from within
"e1 $v"
(procedure "e2" line 1)
invoked from within
"e2 a"
("after" script)
*** ERROR STACK ***
INNER:incrScalar1Imm
CALL:e1 a
CALL:e2 a
*** END OF ERROR MESSAGE ***

So, the error info has the variable names ($v in this case), while the
error stack has the values ("a" in this case).

Might this suit your needs ?

Take care,
Harald

Subject: Re: Show argument values in bgerror
From: alexandru
Newsgroups: comp.lang.tcl
Organization: novaBBS
Date: Fri, 20 Sep 2024 12:04 UTC
References: 1 2 3 4 5 6
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: alexandru.dadalau@meshparts.de (alexandru)
Newsgroups: comp.lang.tcl
Subject: Re: Show argument values in bgerror
Date: Fri, 20 Sep 2024 12:04:38 +0000
Organization: novaBBS
Message-ID: <d0eacc71f15d484e1c8a1fda564ae063@www.novabbs.com>
References: <b42edc7a9bab2a468f2694eda7a2df32@www.novabbs.com> <vcdukq$3vk7h$2@dont-email.me> <6124e3922c51988d84ad3d7945d8e5bd@www.novabbs.com> <vceept$3vk7h$4@dont-email.me> <220612c34ec02644369c013928cbe5c4@www.novabbs.com> <vcepjb$3vk7h$5@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="2760314"; mail-complaints-to="usenet@i2pn2.org";
posting-account="0Z5XV6kwM7Cos/IbgWfXZAYsazigEecpjCfqz3CX7rU";
User-Agent: Rocksolid Light
X-Rslight-Posting-User: 916f90664d3de2199c7a6231aba6924e4b1593d3
X-Spam-Checker-Version: SpamAssassin 4.0.0
X-Rslight-Site: $2y$10$iLZil1LjsjufKhoizISK7Og542PdNZG1MohMYeCLp/rHQeaydYkge
View all headers

Thanks Harald,

This code perfectly solves my problem.

Best regards
Alexandru

Subject: Re: Show argument values in bgerror
From: rene
Newsgroups: comp.lang.tcl
Organization: novaBBS
Date: Tue, 24 Sep 2024 05:54 UTC
References: 1 2 3 4 5 6
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: r.zaumseil@freenet.de (rene)
Newsgroups: comp.lang.tcl
Subject: Re: Show argument values in bgerror
Date: Tue, 24 Sep 2024 05:54:14 +0000
Organization: novaBBS
Message-ID: <86499fc1dd56c1b0c4c7400ba56c9737@www.novabbs.com>
References: <b42edc7a9bab2a468f2694eda7a2df32@www.novabbs.com> <vcdukq$3vk7h$2@dont-email.me> <6124e3922c51988d84ad3d7945d8e5bd@www.novabbs.com> <vceept$3vk7h$4@dont-email.me> <220612c34ec02644369c013928cbe5c4@www.novabbs.com> <vcepjb$3vk7h$5@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="3245442"; mail-complaints-to="usenet@i2pn2.org";
posting-account="ICzRuNmX9opt5WC7ojfJbEk9rPhXiXjfjd+wXEeTTYg";
User-Agent: Rocksolid Light
X-Rslight-Site: $2y$10$/2AifUJ53KnLBF2QGdjfdOE9AHZeRNW/qYI4AAqLa7uR8rWmU7BYi
X-Spam-Checker-Version: SpamAssassin 4.0.0
X-Rslight-Posting-User: fbed0c2f97ab4966f2db85fe976d69405fa9797c
View all headers

Hello Harald,

where did you find the second "errordict" argument of the new bgerror
proc. In the bgerror documentation is only the "message" argument.
May be a documentation error?

Regards
Rene

PS. I will try to answer the oo question later this week.

Subject: Re: Show argument values in bgerror
From: Harald Oehlmann
Newsgroups: comp.lang.tcl
Organization: A noiseless patient Spider
Date: Sun, 13 Oct 2024 11:03 UTC
References: 1 2 3 4 5 6 7
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: wortkarg3@yahoo.com (Harald Oehlmann)
Newsgroups: comp.lang.tcl
Subject: Re: Show argument values in bgerror
Date: Sun, 13 Oct 2024 13:03:11 +0200
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <veg9db$ld2e$1@dont-email.me>
References: <b42edc7a9bab2a468f2694eda7a2df32@www.novabbs.com>
<vcdukq$3vk7h$2@dont-email.me>
<6124e3922c51988d84ad3d7945d8e5bd@www.novabbs.com>
<vceept$3vk7h$4@dont-email.me>
<220612c34ec02644369c013928cbe5c4@www.novabbs.com>
<vcepjb$3vk7h$5@dont-email.me>
<86499fc1dd56c1b0c4c7400ba56c9737@www.novabbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 13 Oct 2024 13:03:07 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="59586a32e1e865f2953e4bd77f7baf7c";
logging-data="701518"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/GVJobJhERl5YVpq8AYhfK"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:pPoBSHvGl/3WjnVr8asgYJeTYzw=
In-Reply-To: <86499fc1dd56c1b0c4c7400ba56c9737@www.novabbs.com>
Content-Language: en-GB
View all headers

Am 24.09.2024 um 07:54 schrieb rene:
> Hello Harald,
>
> where did you find the second "errordict" argument of the new bgerror
> proc. In the bgerror documentation is only the "message" argument.
> May be a documentation error?
No, this is correct. The bgerror procedure is the old fashion and is
obsolete. Use the interp bgerror described here:
https://www.tcl-lang.org/man/tcl8.6/TclCmd/interp.htm#M55

The two arguments are described in the subsection "Background error
handling"

> PS. I will try to answer the oo question later this week.

Great !

Thank you,
Harald

1

rocksolid light 0.9.8
clearnet tor