Menu

#34 Bad syntax definition for "bgerror" in 8.6.9

1.0
open
nobody
None
Bug
2019-08-30
2019-08-30
No

In Tk <= 8.6.9, bgerror and tk::dialog::error::bgerror take exactly 1 argument (e.g. see https://github.com/tcltk/tk/blob/core-8-6-9/library/bgerror.tcl#L100); however, the relevant definitions in syntaxdb86.tcl were changed by https://sourceforge.net/p/nagelfar/code/ci/17047231713f7c0f1596639410fd9add664db4fa/ from

::syntax(bgerror) 1
::syntax(tk::dialog::error::bgerror) 1

to

::syntax(bgerror) {r 1 2}
::syntax(tk::dialog::error::bgerror) {r 1 2}

Now Nagelfar rejects Tk-8.6.9 conforming code that defines bgerror with exactly one argument!

NB: if you run Nagelfar on tk/library/bgerror.tcl from the offocial Tk 8.6.9 release, a warning regarding bgerror is printed:

nagelfar131.linux tk/library/bgerror.tcl
...
Line 100: W Procedure "tk::dialog::error::bgerror" does not match previous definition
            Previous 'r 1 2'  New '1'
...

Discussion


Log in to post a comment.

MongoDB Logo MongoDB