Posted to tcl by kbk at Sun May 09 22:08:54 GMT 2010view pretty
% catch {expr {log(cos(3.14159))}} result options 1 % set options -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 while executing "expr {log(cos(3.14159))}"} -errorline 1 % catch {expr 0./0.} result options 1 % set options -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 invoked from within "expr 0./0."} -errorline 1