From pdalgd at gmail.com  Mon Aug 30 08:50:11 2010
From: pdalgd at gmail.com (Peter Dalgaard)
Date: Mon, 30 Aug 2010 08:50:11 +0200
Subject: [Rd] Surprising behavior of Negate()
In-Reply-To: <e390c0c5c60cfa5855549ed1ef8999b2.squirrel@www.statistik.tu-dortmund.de>
References: <e390c0c5c60cfa5855549ed1ef8999b2.squirrel@www.statistik.tu-dortmund.de>
Message-ID: <4C7B54A3.2080507@gmail.com>

On 08/30/2010 02:01 AM, Olaf Mersmann wrote:
> This matches 'f' when Negate() is called and not the first time the return
> value is used. If the current behavior is desired, maybe a note in the
> documentation could be added to clarify this peculiarity.

Looks like a classic lazy eval gotcha -- almost never intentional.

Testing your patch now.

-p

-- 
Peter Dalgaard
Center for Statistics, Copenhagen Business School
Phone: (+45)38153501
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com



[Rd] Surprising behavior of Negate()
Peter Dalgaard