From: Zev Blut Date: 2004-10-28T20:09:09+09:00 Subject: Re: Mysterious Date Parsing Failures: NaN On Thu, 28 Oct 2004 19:49:21 +0900, Curt Sampson wrote: > On Thu, 28 Oct 2004, Zev Blut wrote: > >> That is quite odd, I cannot recreate it on my machine. > > Did you try calling it a lot. It happens only once every few hundred > thousand times. Ah, no I did not. Although, I just tried it with the following code with no problems. require "date" (1000000).times { Date.new(2003, 4, 11) } >> Although, digging through the source code makes me think it might be >> a C library issue with your "math.h" implementation. > > Hm. I wonder. > >> So in order to help the ones in the know; What is your output when you >> type "ruby -v" ? > > ruby 1.8.2 (2004-07-29) [i386-netbsdelf2.0.] > > uname -a gives: > > NetBSD dev1.tabemo.com 2.0_BETA NetBSD 2.0_BETA ($Id: > TABEMO.WORKSTATION,v 1.1 2004/09/27 07:02:01 cjs Exp $) #2: Mon Sep 27 > 16:04:17 JST 2004 > cjs@dev1.tabemo.com:/u/netbsd/src-2.0/sys/arch/i386/compile/TABEMO.WORKSTATION > i386 Just for comparison's sake, here are the details of the machine I ran it on: $ ruby -v ruby 1.8.2 (2004-05-24) [i686-linux] $ uname -a Linux TwinStar 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003 i686 i686 i386 GNU/Linux If I get some time this weekend I might boot up my Sparc 5 with NetBSD and see what it does. But, hopefully someone in the know will answer the problem before then :-) Best, Zev