Skip to content
Tcl Source Code Artifact [e9774b7fa3]
Login

Artifact [e9774b7fa3]

Artifact e9774b7fa350bc5d06ec64e37e7161bdb8240835:

Ticket change [e9774b7fa3] - Closed ticket [2006641fffffffff|2006641fff]: <i>modified next command handling</i> plus 8 other changes by dkf on 2013-08-20 10:54:17.
D 2013-08-20T10:54:17.736
J closedate 2456524.95437194
J comment In\sthe\scurrent\simplementation\sof\sTclOO\sa\sclass\swith\s2\ssuperclasses\shas\san\sunexpected\shandling\sof\sthe\snext\scommand.\sif\sin\sthe\sconstructor\sthere\sare\s2\scalls\sto\snext\sthen\salways\sthe\sconstructor\sof\sthe\sfirst\ssuperclass\sis\scalled.\r\n\r\nI\sthink\sa\s"natural"\sway\swould\sbe\sto\salways\scall\sany\sentry\sin\sa\scall\schain\sonly\sonce.\r\n\r\nproposed\schange:\r\nadd\sa\shasBeenCalled\sflag\sto\sthe\sCallChain\sstruct\sand\smodify\sTclOOInvokeContext,\sto\sset\sthe\shasBeenCalled\sflag\safter\sa\scall\sto\sa\smethod\sin\sthe\scall\schain.\sWhen\sdoing\sthe\snext\scall\sto\sa\smethod\sin\sthe\scall\schain,\scheck\sfor\sentries,\swhich\shave\shasBeenCalled\sset\sand\sskip\sthem\suntil\sthe\sfirst\sentry,\swhich\shas\snot\sset\shasBeenCalled.\sAt\sthe\send\s(if\s(isFirst)\s{\s...\s})\sreset\shasBeenCalled\sfor\sall\sentries\sin\sthe\scall\schain.\r\n\r\nThat\swould\salso\shelp\sitcl\sto\sbe\sable\sto\suse\sthe\s"normal"\sconstructor\scall\schain.\sAt\sthe\smoment\sitcl\sis\susing\sconstructor\smethods\sand\shas\sadditional\scode\sto\sbuild\sthe\scorrect\s(for\sitcl)\sconstructor\scall\schain.
J icomment Evidence\ssuggests\sthat\sthe\s<tt>nextto</tt>\smechanism\shandles\sthis\sadequately.
J login dkf
J mimetype text/html
J resolution Accepted
J severity Minor
J status Closed
J username dkf
K 2006641fffffffffffffffffffffffffffffffff
U dkf
Z 924fe9064e40cc3ff9d957b74978cf88