diff options
author | dgp <dgp@users.sourceforge.net> | 2017-11-29 14:54:21 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2017-11-29 14:54:21 (GMT) |
commit | ea274aa277fd59bd50fa0946229c2cf5b8fbf67e (patch) | |
tree | ffb74673818266080ad8b399a0a4869d2000da83 /library | |
parent | aed2b19d6e6d1196890a7eac3df3d1ad0b20e4b5 (diff) | |
parent | f8781be6fdf311d62c977a151ec4f6f281cd06ce (diff) | |
download | tcl-ea274aa277fd59bd50fa0946229c2cf5b8fbf67e.zip tcl-ea274aa277fd59bd50fa0946229c2cf5b8fbf67e.tar.gz tcl-ea274aa277fd59bd50fa0946229c2cf5b8fbf67e.tar.bz2 |
merge 8.7
Diffstat (limited to 'library')
-rw-r--r-- | library/init.tcl | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/library/init.tcl b/library/init.tcl index 87d9f14..4424087 100644 --- a/library/init.tcl +++ b/library/init.tcl @@ -73,43 +73,6 @@ namespace eval tcl { encoding dirs $Path } } - - # TIP #255 min and max functions - namespace eval mathfunc { - proc min {args} { - if {![llength $args]} { - return -code error \ - "too few arguments to math function \"min\"" - } - set val Inf - foreach arg $args { - # This will handle forcing the numeric value without - # ruining the internal type of a numeric object - if {[catch {expr {double($arg)}} err]} { - return -code error $err - } - if {$arg < $val} {set val $arg} - } - return $val - } - proc max {args} { - if {![llength $args]} { - return -code error \ - "too few arguments to math function \"max\"" - } - set val -Inf - foreach arg $args { - # This will handle forcing the numeric value without - # ruining the internal type of a numeric object - if {[catch {expr {double($arg)}} err]} { - return -code error $err - } - if {$arg > $val} {set val $arg} - } - return $val - } - namespace export min max - } } namespace eval tcl::Pkg {} |