[ruby-core:80362] Re: [Ruby trunk Feature#13295] [PATCH] compile.c: apply opt_str_freeze to String#-@ (uminus)

From: Eric Wong <normalperson@...>
Date: 2017-03-26 06:16:47 UTC
List: ruby-core #80362
shyouhei@ruby-lang.org wrote:
> We looked at this issue in today's developer meeting.
> 
> Koichi pointed out that you have to consider redefinition of
> String#-@.  You need to take care about such situation, like
> we do already for #freeze.

Oops, I already committed r57828 before this message.
opt_str_freeze insn already takes care of redefinition in
insns.def; so extra check for compile.c won't be affected.

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread