mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
* string (rb_string_value): warning for implicit conversion
from Symbol to String. This behavior was introduced in r22606, merged in r22738 to ruby_1_9_1. It was an unexpected language feature change. It will be removed from Ruby in the 1.9.2. c.f. [ruby-dev:40274]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a5200c59e4
commit
8acba0bc1b
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,11 @@
|
|||
Mon Feb 1 17:11:12 2010 Yuki Sonoda (Yugui) <yugui@yugui.jp>
|
||||
|
||||
* string (rb_string_value): warning for implicit conversion
|
||||
from Symbol to String. This behavior was introduced in r22606,
|
||||
merged in r22738 to ruby_1_9_1. It was an unexpected language
|
||||
feature change. It will be removed from Ruby in the 1.9.2.
|
||||
c.f. [ruby-dev:40274].
|
||||
|
||||
Thu Feb 26 13:23:20 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* iseq.c (cdhash_each): resurrects internal literals.
|
||||
|
|
1
string.c
1
string.c
|
@ -1242,6 +1242,7 @@ rb_string_value(volatile VALUE *ptr)
|
|||
VALUE s = *ptr;
|
||||
if (TYPE(s) != T_STRING) {
|
||||
if (SYMBOL_P(s)) {
|
||||
rb_warn("Implicit conversion from Symbol to String was introduced by mistake. This bug will be fixed in Ruby 1.9.2.");
|
||||
s = rb_sym_to_s(s);
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue