ruby-changes:49629
From: naruse <ko1@a...>
Date: Wed, 10 Jan 2018 00:47:57 +0900 (JST)
Subject: [ruby-changes:49629] naruse:r61744 (trunk): grep_v is ruby 2.3 feature
naruse 2018-01-10 00:47:53 +0900 (Wed, 10 Jan 2018) New Revision: 61744 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61744 Log: grep_v is ruby 2.3 feature Modified files: trunk/tool/ruby_vm/views/optinsn.inc.erb Index: tool/ruby_vm/views/optinsn.inc.erb =================================================================== --- tool/ruby_vm/views/optinsn.inc.erb (revision 61743) +++ tool/ruby_vm/views/optinsn.inc.erb (revision 61744) @@ -59,7 +59,7 @@ rb_insn_unified_local_var_level(VALUE in https://github.com/ruby/ruby/blob/trunk/tool/ruby_vm/views/optinsn.inc.erb#L59 % RubyVM::OperandsUnifications.each_group do |orig, unifs| % unifs.each do|insn| case <%= insn.bin %>: -% insn.spec.map{|(var,val)|val}.grep_v('*').each do |val| +% insn.spec.map{|(var,val)|val}.reject{|i| i == '*' }.each do |val| return <%= val %>; % break % end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/