[ruby-cvs:65189] nobu:r58019 (trunk): vm_args.c: arity check of lambda

nobu at ruby-lang.org nobu at ruby-lang.org
Sun Mar 19 10:11:12 JST 2017


nobu	2017-03-19 10:11:12 +0900 (Sun, 19 Mar 2017)

  New Revision: 58019

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

  Log:
    vm_args.c: arity check of lambda
    
    * vm_eval.c (rb_yield_lambda): new function which yields an array
      to a proc and splat to a lambda.  mainly for Enumerable only.
    
    * vm_args.c (setup_parameters_complex): remove special lambda
      splatting for [Bug #9605].  [ruby-core:77065] [Bug #12705]
    
    * vm_insnhelper.c (vm_callee_setup_block_arg): ditto.

  Modified files:
    trunk/KNOWNBUGS.rb
    trunk/enum.c
    trunk/internal.h
    trunk/test/ruby/test_lambda.rb
    trunk/test/ruby/test_yield.rb
    trunk/vm.c
    trunk/vm_args.c
    trunk/vm_eval.c
    trunk/vm_insnhelper.c


More information about the ruby-cvs mailing list