ruby-changes:4969
From: ko1@a...
Date: Mon, 19 May 2008 06:25:19 +0900 (JST)
Subject: [ruby-changes:4969] knu - Ruby:r16462 (ruby_1_8_7): Merge a NEWS entry from ruby_1_8.
knu 2008-05-19 06:25:00 +0900 (Mon, 19 May 2008)
New Revision: 16462
Modified files:
branches/ruby_1_8_7/NEWS
branches/ruby_1_8_7/version.h
Log:
Merge a NEWS entry from ruby_1_8.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8_7/NEWS?r1=16462&r2=16461&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8_7/version.h?r1=16462&r2=16461&diff_format=u
Index: ruby_1_8_7/NEWS
===================================================================
--- ruby_1_8_7/NEWS (revision 16461)
+++ ruby_1_8_7/NEWS (revision 16462)
@@ -351,6 +351,24 @@
=== Compatibility issues (excluding feature bug fixes)
+* String#to_i, String#hex and String#oct no longer accept a sequence
+ of underscores (`__') as part of a number.
+
+ # Ruby 1.8.6
+ '1__0'.to_i #=> 10
+ '1__0'.to_i(2) #=> 2 # 0b10
+ '1__0'.oct #=> 8 # 010
+ '1__0'.hex #=> 16 # 0x10
+
+ # Ruby 1.8.7
+ '1__0'.to_i #=> 1
+ '1__0'.to_i(2) #=> 1
+ '1__0'.oct #=> 1
+ '1__0'.hex #=> 1
+
+ The old behavior was inconsistent with Ruby syntax and considered as
+ a bug.
+
* tempfile
* The file name format has changed. No dots are included by default
Index: ruby_1_8_7/version.h
===================================================================
--- ruby_1_8_7/version.h (revision 16461)
+++ ruby_1_8_7/version.h (revision 16462)
@@ -1,7 +1,7 @@
#define RUBY_VERSION "1.8.7"
-#define RUBY_RELEASE_DATE "2008-05-18"
+#define RUBY_RELEASE_DATE "2008-05-19"
#define RUBY_VERSION_CODE 187
-#define RUBY_RELEASE_CODE 20080518
+#define RUBY_RELEASE_CODE 20080519
#define RUBY_PATCHLEVEL 0
#define RUBY_VERSION_MAJOR 1
@@ -9,7 +9,7 @@
#define RUBY_VERSION_TEENY 7
#define RUBY_RELEASE_YEAR 2008
#define RUBY_RELEASE_MONTH 5
-#define RUBY_RELEASE_DAY 18
+#define RUBY_RELEASE_DAY 19
#ifdef RUBY_EXTERN
RUBY_EXTERN const char ruby_version[];
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/