Anonymous user
Runtime evaluation/In an environment: Difference between revisions
Runtime evaluation/In an environment (view source)
Revision as of 10:39, 30 April 2009
, 15 years ago→{{header|Tcl}}: this imitates other examples (right?)
(revert Tcl: insofar as I understand the Tcl, the old version was closer to correct, and I understand the change was an attempt to comply with my task req changes) |
(→{{header|Tcl}}: this imitates other examples (right?)) |
||
Line 175:
=={{header|Tcl}}==
<lang tcl>package require Tcl 8.5
proc eval_twice {func a b} {
set
set
set x $b
set 2nd [expr $func];
expr {$2nd - $1st}
}
puts [eval_twice
|