Created
February 25, 2012 16:52
-
-
Save schinen/1909493 to your computer and use it in GitHub Desktop.
script 'varargs_test.rb' result on JRuby github master
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>jruby --version | |
jruby 1.7.0.dev (ruby-1.9.3-p139) (2012-02-26 fffffff) (Java HotSpot(TM) 64-Bit Server VM 1.7.0_02) [Windows 7-amd64-java] | |
>jruby varargs_test.rb | |
(snip)/jruby/lib/ruby/shared/Win32API.rb:7 warning: warning: variable $KCODE is no longer effec | |
tive | |
-------------------- | |
pass String | |
args : ["bar"] | |
args.join(', ') : bar | |
-------------------- | |
pass Strings | |
args : ["bar", "hoge"] | |
args.join(', ') : bar, hoge | |
-------------------- | |
pass Symbol | |
args : [:bar] | |
args.join(', ') : bar | |
-------------------- | |
pass Symbol | |
args : [:bar, :hoge] | |
args.join(', ') : bar, hoge | |
-------------------- | |
pass FixNum | |
args : [1] | |
args.join(', ') : 1 | |
-------------------- | |
pass FixNums | |
args : [1, 2] | |
args.join(', ') : 1, 2 | |
-------------------- | |
pass Foo class | |
args : [#<Foo:0x7d317302>] | |
args.join(', ') : #<Foo:0x7d317302> | |
-------------------- | |
pass Foo object and Bar object | |
args : [#<Foo:0x70071305>, #<Bar:0x6071e6b8>] | |
args.join(', ') : #<Foo:0x70071305>, #<Bar:0x6071e6b8> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment