Hi all,

This is a summary of ruby-dev ML in these days.

[ruby-dev:20138] fileutils.rb feature change

  Minero Aoki announced feature change of fileutils.rb.

    Old:   FileUtils.cp("srcfile", "destfile", :verbose)
                           
    New:   FileUtils.cp("srcfile", "destfile", :verbose => true)

  This modification was introduced to implement `mode' option of
  FileUtils.mkdir.  e.g.

    FileUtils.mkdir "/usr/local/lib/ruby", :mode => 0664

[ruby-dev:20189] [Oniguruma] Version 1.8.6

  K.Kosako released latest version of Oniguruma, a regular expression
  library.  Get it from:

    ftp://ftp.ruby-lang.org/pub/ruby/in.coming/onigd20030514.tar.gz

  This release has not been imported in the CVS repository yet.

[ruby-dev:20194] Re: compare between String and Exception

  TANAKA Akira suggested raising exceptions on the comparison of
  different type of objects.

  For example, String#<=> returns nil on the latest version of ruby.

    % ruby -v -w -e 'p "str" <=> 1'
    ruby 1.8.0 (2003-05-17) [i686-linux]
    nil

    % ruby -v -w -e 'p 1 <=> "str"'
    ruby 1.8.0 (2003-05-17) [i686-linux]
    nil

  He claimed that this kind of comparison is illegal and should not
  be allowed.

  NOTE: <=> is used in Array#sort but [1,"a"].sort raises exception.

    % ruby -e '["a",1].sort'
    -e:1:in `sort': undefined method `>' for nil (NoMethodError)
            from -e:1

  This behavior comes from implementation of Array#sort, but not <=>.

[ruby-dev:20196] Re: (1.8.0-preview2) Proc#call

  SEKI Masatoshi requested a new method to know what causes the
  LocalJumpError to happen.  e.g.

    def foo
      begin
        break
      rescue LocalJumpError => err
        p err.exit_reason   # :break
      end
    end

  Matz agreed with him on the concept, but we still need a better name.

[ruby-dev:20197] ARGF.filename

  Koji Arai requested a new method ARGF.path.  File objects have
  #path method but ARGF does not, and this makes difficult to use
  ARGF object instead of a File.

  NOTE:  ARGF.filename is already defined.


-- Minero Aoki