Posted to tcl by apn at Thu Jan 12 09:41:03 GMT 2017view raw
- What exactly does [info cmdcount] count? Based on below, it does not seem to count either [incr] or [set] though it does count itself.
- % ip eval {info cmdcount}
- 377
- % ip eval {incr i}
- 1
- % ip eval {incr i}
- 2
- % ip eval {incr i}
- 3
- % ip eval {incr i}
- 4
- % ip eval {incr i}
- 5
- % ip eval {info cmdcount}
- 378
- % ip eval {set x 1}
- 1
- % ip eval {set x 1}
- 1
- % ip eval {set x 1}
- 1
- % ip eval {set x 1}
- 1
- % ip eval {info cmdcount}
- 379