shroudBNC Board

Full Version: Tcl problem and time warp
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I working to provide a safe isolated tcl environment for each sbnc accounts.

I'm working under linux with tcl 8.5.
The tcl have a issue (not only 8.5) about the long calculation like :
expr pow($x,$y) or expr $x**$y
expr 32000**20000 (less 1 minute calculation)
expr 5555500000**55555555 (seems never finish... some days or months of calculation?)

Code:
tcl set test [interp -safe --]
tcl interp limit $test time -seconds [expr {[clock seconds] + 5}]
tcl interp eval $test {expr {32000**20000}; return done}

Code:
13:27:00 <admin> tcl interp eval $test {expr {32000**20000}; return END}
13:27:36 <-sBNC> END
13:27:36 <-sBNC> Time warp detected: 32 seconds
Reference URL's