Menu

#10 Make tcl_unknown less eager

open
nobody
None
5
2015-08-20
2015-08-20
No

Hi!

I'm writing some software which is a fork of tkcon, see
https://bitbucket.org/budden/clcon

When I use EvalAttached in my code which extends tkcon itself, my code sometimes contains errors, but it often gets interpreted by tcl_unknown and error does not show. I have incorrect behaviour instead. I disabled tcl_unknown alltogether as I don't need it for my goals.

For tkcon, my advice is to add a debugging option, say "warn-tcl-unknown". If this option is on, warning message is issued every time tcl_unknown is entered. This would make behaviour more clean at many places. I don't know tcl and tkcon internals very well, maybe trace would suffice here. If so, only documentation patching is sufficient.

Discussion


Log in to post a comment.