IdGlobal vs Math

Giganews Newsgroups
Subject: IdGlobal vs Math
Posted by:  Alex Ivlev (
Date: Fri, 17 Aug 2007

Current version of IdGlobal has 2 overloaded versions of both Min and Max
(with LongInt and Int64 arguments). But those functions are also present in
overloaded form in the standard Math unit (with the same arguments and
more). As a result, any project that uses both Math and Indy will not
compile because of ambiguous overloading. I think it's a bad idea to reuse
popular Delphi function names in Indy. If by some reason you are unwilling
to simply use the Math unit, then perhaps rename IdGlobal's functions to
something like IdMin/IdMax?