Richard Sandiford <richard.sandif...@arm.com> writes: > If instead you want to support "return" (would be nice IMO), you could > use something like: > > set code [catch {uplevel eval $args} result options] > if {$code != 0 && $code != 2} { > return -code $code $result > } > set et_cache($prop,$target) $result
Sorry, drop the "options" argument to "catch". I was experimenting with whether -code $code or -options $options gave better backtraces for errors, but -code $code seemed better. Richard