bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnulib] MIN, MAX and ABS (second)


From: Paul Eggert
Subject: Re: [Bug-gnulib] MIN, MAX and ABS (second)
Date: 27 Sep 2003 15:58:46 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Oskar Liljeblad <address@hidden> writes:

> It is very rare that you require SOME argument to MIN/MAX be
> evaluated twice.

I agree.  It's a mistake for code to require that.

> the mistake of assuming that the arguments to MIN/MAX are only
> evaluated once is more common...

But that is also a mistake, since MIN and MAX have to evaluate
their arguments multiple times on non-GCC hosts, even before
today's patch was installed.

Users of MIN and MAX just have to be careful to pass arguments
that are free of harmful side effects.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]