[#444] io_write()/fwrite() and EINTR on Solaris — Jos Backus <jos@...>

I am encountering a problem similar to the one mentioned here,

19 messages 2002/09/06
[#453] Re: io_write()/fwrite() and EINTR on Solaris — nobu.nokada@... 2002/09/08

Hi,

[#454] Re: io_write()/fwrite() and EINTR on Solaris — matz@... (Yukihiro Matsumoto) 2002/09/09

Hi

[#469] Re: io_write()/fwrite() and EINTR on Solaris — Jos Backus <jos@...> 2002/09/09

On Mon, Sep 09, 2002 at 03:55:13PM +0900, Yukihiro Matsumoto wrote:

[#479] Re: io_write()/fwrite() and EINTR on Solaris — Jos Backus <jos@...> 2002/09/10

On Tue, Sep 10, 2002 at 01:04:10AM +0900, Jos Backus wrote:

[#492] Re: io_write()/fwrite() and EINTR on Solaris — Jos Backus <jos@...> 2002/09/21

On Wed, Sep 11, 2002 at 02:23:33AM +0900, Jos Backus wrote:

Re: Set.rb patch

From: "Akinori MUSHA" <knu@...>
Date: 2002-09-04 04:01:38 UTC
List: ruby-core #427
At Wed, 4 Sep 2002 12:44:40 +0900,
I wrote:
> This is not eql?() is expected to be.  The only requirement to eql?()
> is make (a == b => a.eql?(b)) always true; in other words, guarantee
> (!a.eql?(b) => a != b).  See how Hash compares keys: PTR_NOT_EQUAL()
> in st.c.

D'oh, I was confused.  I meant (a.hash == b.hash => a.eql?(b)) i.e.
(!a.eql?(b) => a.hash != b.hash).

And the following test is an irrelevant requirement anyway:

> > +    def test_eql?
> > +       a = EqlClass.new 
> > +       b = EqlClass.new until b.hash == a.hash
> > +       assert !(Set[a].eql?(Set[b]))
> > +    end

I think x.eql?(y) does not need to be false for any given x and y.  It
is certainly not preferable but the following definition of a class is
possible and legal:

	class Foo
	  def hash
	    1
	  end

	  def eql?()
	    true
	  end
	end

Am I missing something?

-- 
                     /
                    /__  __            Akinori.org / MUSHA.org
                   / )  )  ) )  /     FreeBSD.org / Ruby-lang.org
Akinori MUSHA aka / (_ /  ( (__(  @ iDaemons.org / and.or.jp

"When I leave I don't know what I'm hoping to find
              When I leave I don't know what I'm leaving behind.."

In This Thread