Posted to tcl by kbk at Sun May 09 22:08:54 GMT 2010view raw

  1. % catch {expr {log(cos(3.14159))}} result options
  2. 1
  3. % set options
  4. -code 1 -level 0 -errorstack {INNER {invokeStk1 tcl::mathfunc::log -0.9999999999964793}} -errorcode {ARITH DOMAIN {domain error: argument not in valid range}} -errorinfo {domain error: argument not in valid range
  5. while executing
  6. "expr {log(cos(3.14159))}"} -errorline 1
  7. % catch {expr 0./0.} result options
  8. 1
  9. % set options
  10. -code 1 -level 0 -errorstack {INNER {invokeStk1 tcl::mathfunc::log -0.9999999999964793}} -errorcode {ARITH DOMAIN {domain error: argument not in valid range}} -errorinfo {domain error: argument not in valid range
  11. invoked from within
  12. "expr 0./0."} -errorline 1