[#78633] ruby/spec needs help from CRuby committers — Benoit Daloze <eregontp@...>
Currently, ruby/spec is maintained mostly by individuals and enjoys the
13 messages
2016/12/13
[#78963] Re: ruby/spec needs help from CRuby committers
— Urabe Shyouhei <shyouhei@...>
2017/01/04
I did ask attendees of last developer meeting to join this
[#78642] Re: ruby/spec needs help from CRuby committers
— Eric Wong <normalperson@...>
2016/12/14
Benoit Daloze <eregontp@gmail.com> wrote:
[ruby-core:78884] Re: [Ruby trunk Feature#13077] [PATCH] introduce String#fstring method
From:
Eric Wong <normalperson@...>
Date:
2016-12-28 02:52:21 UTC
List:
ruby-core #78884
nobu@ruby-lang.org wrote:
> Why not `String#-@`?
As in the following? (short patch, full below)
--- a/string.c
+++ b/string.c
@@ -10002,7 +9989,7 @@ Init_String(void)
rb_define_method(rb_cString, "scrub!", str_scrub_bang, -1);
rb_define_method(rb_cString, "freeze", rb_str_freeze, 0);
rb_define_method(rb_cString, "+@", str_uplus, 0);
- rb_define_method(rb_cString, "-@", str_uminus, 0);
+ rb_define_method(rb_cString, "-@", rb_fstring, 0);
rb_define_method(rb_cString, "to_i", rb_str_to_i, -1);
rb_define_method(rb_cString, "to_f", rb_str_to_f, 0);
Changing existing behavior method might break compatibility;
but test-all and test-rubyspec seems to pass...
full: https://80x24.org/spew/20161228024937.9345-1-e@80x24.org/raw
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>