summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-01 17:33:29 +0000
committermrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-01 17:33:29 +0000
commit991bd133d56eece356c7d3467caa064feae3164b (patch)
treef1c804b1cbf044a4aee6b46345b92fb99a426d50
parent6f39ca4665107f724ee62159333a1805e93a9830 (diff)
* NEWS: Add the description of number literal suffixes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--NEWS10
2 files changed, 14 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 4bb807e..eb927ce 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Thu Aug 2 02:32:00 2013 Kenta Murata <mrkn@mrkn.jp>
+
+ * NEWS: Add the description of number literal suffixes.
+
Thu Aug 2 00:02:00 2013 Kenta Murata <mrkn@mrkn.jp>
* bootstraptest/test_literal_suffix.rb: add two test cases to
diff --git a/NEWS b/NEWS
index 989ec80..8e351da 100644
--- a/NEWS
+++ b/NEWS
@@ -12,6 +12,16 @@ with all sufficient information, see the ChangeLog file.
== Changes since the 2.0.0 release
=== Language changes
+
+* Added integer and float literals: 'r', 'i', and 'ri'.
+ * "42r" and "3.14r" are evaluated as Rational(42, 1) and 3.14.rationalize,
+ respectively. But exponential form with 'r' suffix like "6.022e+23r" is
+ not accepted bcause it is misleadable.
+ * "42i" and "3.14i" are evaluated as Complex(0, 1) and Complex(0, 1.5),
+ respectively.
+ * "42ri" and "3.14ri" are evaluated as Complex(0, 42r) and Complex(0, 3.14r),
+ respectively.
+
=== Core classes updates (outstanding ones only)
* GC