[ruby-cvs:69172] mame:r61991 (trunk): ext/ripper/tools/dsl.rb: Serialize dispatch calls

mame at ruby-lang.org mame at ruby-lang.org
Sun Jan 21 02:45:24 JST 2018


mame	2018-01-21 02:45:24 +0900 (Sun, 21 Jan 2018)

  New Revision: 61991

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

  Log:
    ext/ripper/tools/dsl.rb: Serialize dispatch calls
    
    To avoid the unspecified behavior (the evaluation order of arguments).
    In `$$ = foo(bar(), baz());`, it is unspecified which `bar` or `baz` is
    called earlier.
    
    This commit changes the code to `v1=bar(); v2=baz(); $$ = foo();`.

  Modified files:
    trunk/ext/ripper/tools/dsl.rb


More information about the ruby-cvs mailing list