From: Eric Wong Date: 2016-12-28T02:52:21+00:00 Subject: [ruby-core:78884] Re: [Ruby trunk Feature#13077] [PATCH] introduce String#fstring method 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: