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

From: normalperson@...
Date: 2017-03-08 21:26:57 UTC
List: ruby-core #79971
Issue #13295 has been reported by Eric Wong.

----------------------------------------
Feature #13295: [PATCH] compile.c: apply opt_str_freeze to String#-@ (uminus)
https://bugs.ruby-lang.org/issues/13295

* Author: Eric Wong
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
----------------------------------------
The same optimization used for "literal string".freeze
can easily apply to uminus without introducing any
compatibility problems.



I can't think of any problems this would introduce,
but I'll wait a few days for feedback before committing.


---Files--------------------------------
0001-compile.c-apply-opt_str_freeze-to-String-uminus.patch (1.47 KB)


-- 
https://bugs.ruby-lang.org/

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

In This Thread

Prev Next