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

  1. % for (j=0,i=0) \$i<=10 (i=\$i+1) (j=\$j+\$i)
  2. % puts $j
  3. 55

Comments

Posted by FM at Mon Aug 10 18:39:13 GMT 2026 [text] [code]

But be carefull not to add space betwen the parenthese, and protect your variables from parser evaluation with backslash.

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