Overview
| Artifact ID: | 935b60f228e826a360fce426e9e5df8b3be63477 |
|---|---|
| Ticket: | 2038069fffffffffffffffffffffffffffffffff
Too much errorinfo at catch |
| User & Date: | lars_h on 2008-08-07 03:41:38 |
Changes
- icomment:
Logged In: YES user_id=938835 Originator: YES OK, so you've restored the pre-NRE behaviour. An improvement, although it still has compiled [catch]es putting information about commands not actually caught in the -errorinfo. I consider that a bug too, although obviously one of low prioriity. For now, I'll work around it by adding an [eval] to force use of the interpreted [catch] instead: proc hubs::eval::do-8.5 {prefix script} { list [eval {catch [lappend prefix $script] res info}] $res $info } Re "all ears": OK, that idea is to switch context for the [catch] and use fully-qualified names for the variables to avoid overwriting other variables; nothing that really required TIP#90. (Which is good, since I also have a [hubs::eval::do-8.4] for use in older interpreters.) There is no reentrancy problem, since the variables are only set when returning. That's good. The trick works for prefixes of "uplevel $level" and "namespace eval $ns", but not for "interp eval $path". That's *bad*, because the latter is one of my use-cases. Close but no cigar, I'm afraid. - login: "lars_h"
- mimetype: "text/plain"
- username: "lars_h"