From: ts Date: 2001-10-29T22:26:09+09:00 Subject: [ruby-talk:23722] Re: ref. constructors and new (was: Re: class Foo does not call Class.new?) >>>>> "Y" == Yukihiro Matsumoto writes: Y> I'm not sure I get what you mean. Then how literal strings are Y> created, without String.new? I think, not really sure, that he want something like this pigeon% diff -u eval.c~ eval.c --- eval.c~ Mon Oct 29 14:14:00 2001 +++ eval.c Mon Oct 29 14:16:49 2001 @@ -2969,7 +2969,7 @@ break; case NODE_STR: - result = rb_str_new3(node->nd_lit); + result = rb_funcall(rb_cString, rb_intern("new"), 1, node->nd_lit); break; case NODE_DSTR: pigeon% Same with NODE_ARRAY, NODE_HASH, ... Guy Decoux