Re: [IDEA+RFC] Possible solution for min()/max() war

From: Alexander Viro (viro@math.psu.edu)
Date: Fri Aug 24 2001 - 19:34:34 EST


On Fri, 24 Aug 2001, Brad Chapman wrote:

> > >
> > > What do you think, sir?
> >
> > Use different inline functions for signed and unsigned.
> > Explicitly.
>
> OK. That sounds reasonable, but do we want to do another forced
> change, or do we want to hide it? That seems to be the root of the problem:
> keeping the same API but making it work _right_.

Existing API is wrong. "Hiding" is precisely what's wrong here - we
use the same name for two subtly different functions.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Aug 31 2001 - 21:00:16 EST