From: normalperson@... Date: 2017-03-08T21:26:57+00:00 Subject: [ruby-core:79971] [Ruby trunk Feature#13295] [PATCH] compile.c: apply opt_str_freeze to String#-@ (uminus) 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: