Hello all,
This is a weekly summary of ruby-dev mailing list.
[ruby-dev:19457] equality between “a” and Exception.new(“a”)
Akira Tanaka asked if it is intended that ‘==’ doesn’t have commutativity.
This behavior comes from the equality checking mechanism of String.
For example, the following two expressions doesn’t return same value.
(a) “a” == Exception.new(“a”)
(b) Exception.new(“a”) == “a”
(a) returns true and (b) returns false. It is because Exception.new(“a”)
is automatically transformed to a String object “a” via to_str method in
case of (a). Matz changed a method for checking equality of strings as
follows.
In case of a == b and b is not a String object, the expression is true
if b has a method to_str and b == a is true.
[ruby-dev:19480] [RCR] Kernel#same?
Nobu Nakada requested a new method “same?”, that tests equality of
two objects in terms not only of the objects themselves but also of
instance variables they have. He also posted a patch to implement it.
Matz commented that we might develop a proper deep traverse framework
to support Marshal, deep-copy and this equality test, rather than
work around the recursive situation in traverse such like the Nobu’s
approach in the patch.
[ruby-dev:19494] [Oniguruma] Version 1.7
[ruby-dev:19514] [Oniguruma] Version 1.7.1
K.Kosako announced a new verion of Oniguruma library. You can get
it from:
ftp://ftp.ruby-lang.org/pub/ruby/contrib/onigd20030207.tar.gz
http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/oniguruma/
Here is the changelog in the announcement:
- improved speed (10% faster)
- added Cygwin support
- supported building DLL on Windows platform
There is a FreeBSD ports of Oniguruma by Akinori MUSHA:
http://www.FreeBSD.org/cgi/cvsweb.cgi/ports/devel/oniguruma/
Using ruby ports also available by him, FreeBSD users can easily
try building and testing it by setting WITH_ONIGURUMA=yes:
http://www.FreeBSD.org/cgi/cvsweb.cgi/ports/lang/ruby/ (1.6)
http://www.FreeBSD.org/cgi/cvsweb.cgi/ports/lang/ruby-devel/ (1.8)
[ruby-dev:19536] 1.8.0 preview2 (Re: Re: HAVE_* macros)
Matz considers about 1.8.0 and its release date. He wants to release
1.8.0 (not previews) soon and to concentrate on Rite development.
Also, he, and many Rubyists of course, expect a Test::Unit release
bundled with 1.8.0 officially.
Kazuo Saito ksaito@uranus.dti.ne.jp