summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-01-11 11:24:11 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-01-11 11:24:11 +0000
commit31e6676624aab96f108b312a619df24136f1946a (patch)
treec0390fee6fa6f96130e5d556fe697f4e9d3d0d63 /doc
parente1ac9c6a0f6a1c24571b0f33897c24b2f77fbf58 (diff)
* 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
Diffstat (limited to 'doc')
-rw-r--r--doc/NEWS49
1 files changed, 24 insertions, 25 deletions
diff --git a/doc/NEWS b/doc/NEWS
index 9e42cec..1b2baf9 100644
--- a/doc/NEWS
+++ b/doc/NEWS
@@ -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
@@ -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.
@@ -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
@@ -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.
@@ -253,7 +257,7 @@
Fixed so that "*a = nil" results in "a == []".
-: NameError & NoMethodError
+: NameError and NoMethodError
Moved and now NoMethodError < NameError < StandardError.
@@ -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.
@@ -367,7 +366,7 @@
: String.new
- returns "".
+ The first argument becomes optional.
: Symbol#intern