Posted to tcl by FM at Mon Aug 10 18:14:21 GMT 2026view raw

  1. # inline substitution (returns the expr result)
  2. % set x [(1+1)]
  3. 2
  4. % puts $x
  5. 2
  6. # muted substitution (returns nothing)
  7. % [( x = 2+2; )]
  8. % puts $x
  9. 4

Add a comment

Please note that this site uses the meta tags nofollow,noindex for all pages that contain comments.
Items are closed for new comments after 1 week