Skip to content

Commit

Permalink
* doc/NEWS: moved syntax related issues to top of the list.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
aamine committed Jan 11, 2002
1 parent e1ac9c6 commit 31e6676
Showing 1 changed file with 24 additions and 25 deletions.
49 changes: 24 additions & 25 deletions doc/NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@
Extended to take an optional expression, which is used as a value
for termination. [experimental]

: comparison of exception classes in a rescue clause

Changed to use Module#=== for comparing $! with the exception
class specified in each rescue clause.

As the previous behavior was to use kind_of?, the effect is limited
to the SystemCallError case. SystemCallError.=== has been newly
defined to return true when the two have the same errno. With this
change, SystemCallError's with the same errno, such as Errno::EAGAIN
and Errno::EWOULDBLOCK, can both be rescued by listing just one of
them.

: constants lookup

Improved at the performance of searching by using an internal hash
Expand All @@ -40,6 +52,16 @@

(p("xx"*2)).to_i

: implicit comparison in conditional expressions

is obsoleted except when it is used in -e.

: between Range and $.
Use explicit comparison instead.

: between Regexp and $_
Use the unary method ~/re/ instead.

: to_str

Added to get objects which define to_str() treated as String's.
Expand Down Expand Up @@ -107,18 +129,6 @@
Beware that this behavior is not guaranteed to continue in the
future. Do not rely on its return value. [ruby-dev:12506]

: Comparison of exception classes in a rescue clause

Changed to use Module#=== for comparing $! with the exception
class specified in each rescue clause.

As the previous behavior was to use kind_of?, the effect is limited
to the SystemCallError case. SystemCallError.=== has been newly
defined to return true when the two have the same errno. With this
change, SystemCallError's with the same errno, such as Errno::EAGAIN
and Errno::EWOULDBLOCK, can both be rescued by listing just one of
them.

: Curses

Updated. New methods and constants for using the mouse, character
Expand Down Expand Up @@ -192,12 +202,6 @@
Made a subclass of SignalException. (It was a subclass of
Exception in 1.6 and prior)

: Line-range operation

Obsoleted except the case when used in a one-liner (ruby -e "..."),
which means "if 101..200" in a script is no longer interpreted as
comparison between (({$.})) and 101 or 200.

: Marshal

Fixed not to dump anonymous classes/modules.
Expand Down Expand Up @@ -253,7 +257,7 @@

Fixed so that "*a = nil" results in "a == []".

: NameError & NoMethodError
: NameError and NoMethodError

Moved and now NoMethodError < NameError < StandardError.

Expand Down Expand Up @@ -302,11 +306,6 @@

a, b, c = 1..3

: Regexp

It is being obsoleted to regard /re/ as /re/ =~ $_ in a conditional
context. Use ~/re/ instead.

: Regexp#options

Added.
Expand Down Expand Up @@ -367,7 +366,7 @@

: String.new

returns "".
The first argument becomes optional.

: Symbol#intern

Expand Down

0 comments on commit 31e6676

Please sign in to comment.