[ruby-cvs:67128] nobu:r59950 (trunk): refinements in string interpolation

nobu at ruby-lang.org nobu at ruby-lang.org
Mon Sep 18 11:27:13 JST 2017


nobu	2017-09-18 11:27:13 +0900 (Mon, 18 Sep 2017)

  New Revision: 59950

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59950

  Log:
    refinements in string interpolation
    
    * compile.c (iseq_compile_each0): insert to_s method call, so that
      refinements activated at the caller should take place.
      [Feature #13812]
    
    * insns.def (tostring): fix up converted object to a string,
      infect and fallback.
    
    * insns.def (branchiftype): new instruction for conversion.
      branches if TOS is an instance of the given type.

  Modified files:
    trunk/NEWS
    trunk/compile.c
    trunk/insns.def
    trunk/string.c
    trunk/test/ruby/test_refinement.rb


More information about the ruby-cvs mailing list