Re: catch replacing useful errorInfo




Scrolling back to pick up a couple other points.

tom.rmadilo wrote:
2. This one is difficult to give an example for, maybe this has been
fixed, but the idea is that the body of catch has to be compiled, and
this can fail.

The addition of bytecode compiling in 8.0 was a big step, and it did
take some time to shake *all* the bugs out (some might say we're still
shaking). My guess is that you ran into something ugly like Tcl Bug
705406, and that's made you shy about using [catch]. That bug was a
bad one, but it's fixed now.

5. ... getting all this to work requires full use
of catch, error and return. So using catch is not bad style or bad
programming, it is a big tool which requires a lot of care to apply
correctly,

Developments in Tcl 8.5 should have improved this a fair bit. Take
a look at the updated documentation and TIP 90 for some examples.

http://tmml.sourceforge.net/doc/tcl/return.html
http://tmml.sourceforge.net/doc/tcl/catch.html
http://tip.tcl.tk/90

DGP
.



Relevant Pages

  • Re: Slightly OT - Wheel Scrolling Crashes VS2008 - Very Irritating!
    ... it's highly unlikely that any future version of VS will have a similar bug. ... You'd have a point if they had explicitly tested and supported the different wheel settings for every release, and had somehow neglected to do this for VS 2008. ... The feature was probably never expanded beyond "wheel scrolling", and "screen at a time scrolling" never treated as a subfeature subject to regression. ... A regression as far as the user is concerned, but a hard to catch new bug for the developers, and a missing scenario for QA. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: visual tears when scrolling in draft view?
    ... If you have a document in which this problem consistently manifests would ... We recently fixed a similar bug and I'd like to see if it is the same issue. ... When scrolling with the mouse scroll wheel while in draft view with ... appear at both the top and bottom part of the window. ...
    (microsoft.public.mac.office.word)
  • [PATCH] Shift+PgUp if nr of scrolled lines is < 4
    ... direction we are scrolling to, then we scroll a little bit more just to ... This bug was also reported with maybe a less clear description by Stepan ... Here's a patch that retains margin support and fixes the bug. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: Tk8.5: text-widget yview command gives wrong information
    ... There was a Tk text widget bug with wrapped ... text and scrolling, and this was fixed in 8.5. ... there since the Tk text widget design was originally created. ... unreliable results for an unpredictable amount ...
    (comp.lang.tcl)
  • Re: [BUG 2.6.20-rc2] atkbd.c: Spurious ACK
    ... The bug where the kernel repetitively emits "atkbd.c: Spurious ACK on ... thereby scrolling away the information that would help ...
    (Linux-Kernel)