diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-09-02 15:05:27 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-09-02 15:05:27 +0000 |
commit | ccf5372b252a229ddb6693db132edc013419ccdc (patch) | |
tree | 2d0619ed60d5749e05e9479c5aa1cab82959266e /class.c | |
parent | 2156870525be05f0bd769af141c3f6cff9fff8c4 (diff) | |
download | ruby-ccf5372b252a229ddb6693db132edc013419ccdc.tar.gz |
* object.c (Init_Object): move symbol related code to string.c
* string.c (Init_String): Symbol as subclass of String.
* parse.y (rb_intern2): handle symbol as strings.
* string.c (str_new): substring of symbols are mere strings, not
symbols.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'class.c')
-rw-r--r-- | class.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -489,7 +489,7 @@ ins_methods_push(ID name, long type, VALUE ary, long visi) break; } if (visi) { - rb_ary_push(ary, rb_str_new2(rb_id2name(name))); + rb_ary_push(ary, ID2SYM(name)); } return ST_CONTINUE; } |