[ruby-cvs:59385] nobu:r52234 (trunk): safe navigation attrset

nobu at ruby-lang.org nobu at ruby-lang.org
Fri Oct 23 10:49:39 JST 2015


nobu	2015-10-23 10:49:38 +0900 (Fri, 23 Oct 2015)

  New Revision: 52234

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

  Log:
    safe navigation attrset
    
    * compile.c (iseq_compile_each): support safe navigation of simple
      attribute assignment.  [Feature #11537]
    * parse.y (mlhs_node, lhs, attrset_gen): ditto.  keep mid
      non-attrset as the sign of safe navigation.

  Modified files:
    trunk/ChangeLog
    trunk/compile.c
    trunk/parse.y
    trunk/test/ruby/test_call.rb
    trunk/test/ruby/test_iseq.rb


More information about the ruby-cvs mailing list