ruby-changes:41045
From: nobu <ko1@a...>
Date: Tue, 15 Dec 2015 13:50:10 +0900 (JST)
Subject: [ruby-changes:41045] nobu:r53122 (trunk): string.c: radix indicators [ci skip]
nobu 2015-12-15 13:49:59 +0900 (Tue, 15 Dec 2015) New Revision: 53122 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53122 Log: string.c: radix indicators [ci skip] * string.c (rb_str_oct): [DOC] mention radix indicators. [ruby-core:71310] [Bug #11648] Modified files: trunk/ChangeLog trunk/string.c Index: ChangeLog =================================================================== --- ChangeLog (revision 53121) +++ ChangeLog (revision 53122) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Tue Dec 15 13:50:05 2015 Nobuyoshi Nakada <nobu@r...> + + * string.c (rb_str_oct): [DOC] mention radix indicators. + [ruby-core:71310] [Bug #11648] + Tue Dec 15 12:20:30 2015 Takashi Kokubun <takashikkbn@g...> * lib/erb.rb: Simplify regexp to optimize erb scanner. Index: string.c =================================================================== --- string.c (revision 53121) +++ string.c (revision 53122) @@ -8033,6 +8033,9 @@ rb_str_hex(VALUE str) https://github.com/ruby/ruby/blob/trunk/string.c#L8033 * "-377".oct #=> -255 * "bad".oct #=> 0 * "0377bad".oct #=> 255 + * + * If +str+ starts with <code>0</code>, radix indicators are hornored. + * See Kernel#Integer. */ static VALUE -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/