[#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: Patch to add a Module#const_missing method

From: GOTO Kentaro <gotoken@...>
Date: 2002-09-21 05:58:26 UTC
List: ruby-core #493
At Fri, 6 Sep 2002 21:49:54 +0900,
Jan Arne Petersen wrote:
> > Already we have autoload, and it can be considered a special
> > form of const_missing, I guess.
>
> The problem with autload is that you have to register the name of the
> constants first and you cannot call a proc on request but only 'require'
> a specific file.
> 
> In contrast 'const_missing' can be used to create classes on demand if
> you don't know the name before it is requested and you can execute any
> code in the 'const_missing' method.

I thought this problem again last night.  Then I got believed that
const_missing is superior option.

  * autoload can be defined by const_missing but the coverse cannot. 
    So we can exile autoload from built-ins.  
  * attr_missing looks quite different matter, as Dave said.  

But I have a question about const_missing spec. 

  module M
    class<<self
      def const_missing(a) a end
      def method_missing(*a) a end
    end
  end 
  p M::M

In this case, what should be printed?

  (1) :M   by const_missing()
  (2) [:M] by method_missing()
  (3) M    by the rule M == M::M


-- Gotoken

In This Thread