Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2016-03-17
13:15 • Closed ticket [ae38befcfb]: TclGetInnermostExceptionRange() is backwards plu... artifact: 9b27d3338f user: dgp
13:14
[ae38befcfb] Rewrite TclGetInnermostExceptionRange() for fewer iterations. check-in: 582d6817fe user: dgp tags: core-8-6-branch
2016-03-11
15:24 • Ticket [ae38befcfb] TclGetInnermostExceptionRange() is backwards status stil... artifact: e19d80fbaa user: dgp
15:23 • New ticket [ae38befcfb]. artifact: dd1547111a user: dgp

TclGetInnermostExceptionRange() is backwards

Closed / Acceptedae38befcfbc776f45a9499cf78228294f724e221Created 11 years agoUpdated 11 years ago
Descriptionplain2016-03-11 15:23:56
Ok, it's pretty minor, but...

TclGetInnermostExceptionRange() loops over
the array of ExceptionRange, tests whether
each includes the CurrentOffset, and keeps
it if it does.  The end result is that we
find the latest ExceptionRange meeting that
criterion.

So why not start at the end of the array,
search backward, and break on the first one found?
Referenced by1
  • 582d6817fe[ae38befcfb] Rewrite TclGetInnermostExceptionRange() for fewer iterations. check-in2016-03-17 13:14:22
dgp Ticket [ae38befcfb]: 3 changes [History diff]2016-03-11 15:24:09
dgpplain2016-03-17 13:15:04
Done.
Log in (anonymous is fine) to add a comment.