* doc/NEWS: moved syntax related issues to top of the list.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e1ac9c6a0f
commit
31e6676624
49
doc/NEWS
49
doc/NEWS
@ -20,6 +20,18 @@
|
|||||||
Extended to take an optional expression, which is used as a value
|
Extended to take an optional expression, which is used as a value
|
||||||
for termination. [experimental]
|
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
|
: constants lookup
|
||||||
|
|
||||||
Improved at the performance of searching by using an internal hash
|
Improved at the performance of searching by using an internal hash
|
||||||
@ -40,6 +52,16 @@
|
|||||||
|
|
||||||
(p("xx"*2)).to_i
|
(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
|
: to_str
|
||||||
|
|
||||||
Added to get objects which define to_str() treated as String's.
|
Added to get objects which define to_str() treated as String's.
|
||||||
@ -107,18 +129,6 @@
|
|||||||
Beware that this behavior is not guaranteed to continue in the
|
Beware that this behavior is not guaranteed to continue in the
|
||||||
future. Do not rely on its return value. [ruby-dev:12506]
|
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
|
: Curses
|
||||||
|
|
||||||
Updated. New methods and constants for using the mouse, character
|
Updated. New methods and constants for using the mouse, character
|
||||||
@ -192,12 +202,6 @@
|
|||||||
Made a subclass of SignalException. (It was a subclass of
|
Made a subclass of SignalException. (It was a subclass of
|
||||||
Exception in 1.6 and prior)
|
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
|
: Marshal
|
||||||
|
|
||||||
Fixed not to dump anonymous classes/modules.
|
Fixed not to dump anonymous classes/modules.
|
||||||
@ -253,7 +257,7 @@
|
|||||||
|
|
||||||
Fixed so that "*a = nil" results in "a == []".
|
Fixed so that "*a = nil" results in "a == []".
|
||||||
|
|
||||||
: NameError & NoMethodError
|
: NameError and NoMethodError
|
||||||
|
|
||||||
Moved and now NoMethodError < NameError < StandardError.
|
Moved and now NoMethodError < NameError < StandardError.
|
||||||
|
|
||||||
@ -302,11 +306,6 @@
|
|||||||
|
|
||||||
a, b, c = 1..3
|
a, b, c = 1..3
|
||||||
|
|
||||||
: Regexp
|
|
||||||
|
|
||||||
It is being obsoleted to regard /re/ as /re/ =~ $_ in a conditional
|
|
||||||
context. Use ~/re/ instead.
|
|
||||||
|
|
||||||
: Regexp#options
|
: Regexp#options
|
||||||
|
|
||||||
Added.
|
Added.
|
||||||
@ -367,7 +366,7 @@
|
|||||||
|
|
||||||
: String.new
|
: String.new
|
||||||
|
|
||||||
returns "".
|
The first argument becomes optional.
|
||||||
|
|
||||||
: Symbol#intern
|
: Symbol#intern
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user