Posted to tcl by avl at Mon May 29 19:18:31 GMT 2017view raw

  1. Here is a part of a procedure's disassembly.
  2. The procedure appends an [unset b] to some other value.
  3.  
  4. (76) unsetScalar 1 %v2 # var "b"
  5. (82) push1 1 # ""
  6. (84) strcat 2
  7.  
  8. bug? feature? optimized elsewhere?
  9.  
  10. ...it even knows unset's result is empty...
  11.  

Comments

Posted by avl at Mon May 29 22:55:10 GMT 2017 [text] [code]

In light of my newer paste (performance drop with empty string concatenation), the disassembly looks the same in 8.6.5 and trunk version.