Skip to content
Tcl Source Code View Ticket
Login

View Ticket

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.