Thread Rating:
- 0 Votes - 0 Average
- 1
- 2
- 3
- 4
- 5
|
Tcl problem and time warp
|
| Author |
Message |
TsT
Junior Member
 
Posts: 5
Joined: Jun 2010
Reputation: 0
|
Tcl problem and time warp
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
|
|
| 24.06.2010 12:53 |
|