Hello,

Here is a ruby-dev summary of last week.


[ruby-dev:19545] require self?

  Shin-ichiro Hara informed that 'require' loads a file twice in case
  of calling 'require' for loading the file in it. In the following
  example, 'a.rb' is loaded twice.

  ~$ cat a.rb
  puts 'a1'
  require 'a'
  puts 'a2'

  result:
  a1
  a1
  a2
  a2

  Matz answered that a file loaded by 'require' is added $" after compilation
  to solve this problem. However, we should reconsider what the best exception
  behavior while executing the loaded file.

[ruby-dev:19548] [PATCH] file.c for (PR#389) and (PR#390)

  File.basename and File.dirname is changed *experimentally*.

  In case of UNIX:
    basename("/") => "/"   (The Single Unix Specification v3)

  In case of DOSISH:
    dirname("//") => "//"
    dirname("c:") => "c:."
    dirname("c:/") => "c:/"
    basename("//") => "/"
    basename("c:/") => "/"
    basename("c:") => ""
-- 
Takaaki Tateishi <ttate / kt.jaist.ac.jp>