Created
September 13, 2011 15:15
-
-
Save kearnh/1214078 to your computer and use it in GitHub Desktop.
A file used to test TagmaDebugger.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# FIXME add external package, and then call into package | |
proc qux {} { | |
set s 0 | |
for {set i 0} {$i < 3} {incr i} { | |
set m [expr 2*$i] | |
incr s $m | |
} | |
return $s | |
} | |
proc baz {x} { | |
set y 5 | |
return [expr $x-$y+[qux]] | |
} | |
proc bar {x} { | |
return [baz $x] | |
} | |
proc foo {x} { | |
return [expr {[bar [expr $x+1]] + [bar $x]}] | |
} | |
set x [foo 2] | |
puts [string repeat [foo 1] $x] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment