ruby-changes:6099
From: matz <ko1@a...>
Date: Fri, 27 Jun 2008 18:36:19 +0900 (JST)
Subject: [ruby-changes:6099] Ruby:r17611 (trunk): * parse.y (primary): empty not should call '!' on nil.
matz 2008-06-27 18:35:53 +0900 (Fri, 27 Jun 2008) New Revision: 17611 Modified files: trunk/ChangeLog trunk/parse.y Log: * parse.y (primary): empty not should call '!' on nil. cf [ruby-dev:35227] http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/parse.y?r1=17611&r2=17610&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=17611&r2=17610&diff_format=u Index: ChangeLog =================================================================== --- ChangeLog (revision 17610) +++ ChangeLog (revision 17611) @@ -4,6 +4,11 @@ * test/erb/test_erb.rb: add tests for def_method. +Fri Jun 27 14:29:07 2008 Yukihiro Matsumoto <matz@r...> + + * parse.y (primary): empty not should call '!' on nil. + cf [ruby-dev:35227] + Fri Jun 27 14:25:52 2008 Nobuyoshi Nakada <nobu@r...> * vm.c (vm_eval_body): if thrown exception is frozen, reraise it to Index: parse.y =================================================================== --- parse.y (revision 17610) +++ parse.y (revision 17611) @@ -2624,7 +2624,7 @@ | keyword_not '(' rparen { /*%%%*/ - $$ = NEW_LIT(Qtrue); + $$ = call_uni_op(cond(NEW_NIL()), '!'); /*% $$ = dispatch2(unary, ripper_intern("not"), Qnil); %*/ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/