Posted to tcl by apn at Thu Jan 12 09:41:03 GMT 2017view raw

  1. What exactly does [info cmdcount] count? Based on below, it does not seem to count either [incr] or [set] though it does count itself.
  2.  
  3. % ip eval {info cmdcount}
  4. 377
  5. % ip eval {incr i}
  6. 1
  7. % ip eval {incr i}
  8. 2
  9. % ip eval {incr i}
  10. 3
  11. % ip eval {incr i}
  12. 4
  13. % ip eval {incr i}
  14. 5
  15. % ip eval {info cmdcount}
  16. 378
  17. % ip eval {set x 1}
  18. 1
  19. % ip eval {set x 1}
  20. 1
  21. % ip eval {set x 1}
  22. 1
  23. % ip eval {set x 1}
  24. 1
  25. % ip eval {info cmdcount}
  26. 379