[前][次][番号順一覧][スレッド一覧][生データ]

ruby-cvs:20712

From: matz ruby-lang.org
Date: Fri, 21 Sep 2007 02:14:02 +0900 (JST)
Subject: [ruby-cvs:20712] Ruby:r13475 (trunk): * re.c (rb_reg_match_m): evaluate a block if match. it would make

matz	2007-09-21 02:14:01 +0900 (Fri, 21 Sep 2007)

  New Revision: 13475

  Modified files:
    trunk/ChangeLog
    trunk/re.c
    trunk/string.c

  Log:
    * re.c (rb_reg_match_m): evaluate a block if match.  it would make
      condition statement much shorter, if no else clause is needed.
    
    * string.c (rb_str_match_m): ditto.

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/string.c?r1=13475&r2=13474
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=13475&r2=13474
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/re.c?r1=13475&r2=13474


[前][次][番号順一覧][スレッド一覧][生データ]