Hi, i just try exercise 3, RubyMethod_Parentheses
and just found that it result different result using Ruby 1.9
can somebody explain me about this ?
*Ruby 1.9*
---- Pass arguments enclosed with parentheses
The number of arguments is 3. The number of people is 3. The arguments are
1,Sang Shin,c
---- Pass arguments without parentheses
The number of arguments is 3. The number of people is 3. The arguments are
1,Sang Shin,c
---- Pass arguments without parentheses, last argument is a hash with {}
The number of arguments is 3. The number of people is 3. The arguments are
3,Sang Shin,{:a=>" loves ", :b=>" Young Shin"}
---- Pass arguments without parentheses, last argument is a hash without {}
The number of arguments is 3. The number of people is 3. The arguments are
3,Sang Shin,{:a=>" loves ", :b=>" Young Shin"}
---- You have to enclose arguments with parentheses if block is attached
The number of arguments is 3. The number of people is 3. The arguments are
3,Sang Shin,{:a=>" loves ", :b=>" Young Shin"}
---- You have to enclose arguments with parentheses if block is attached
The number of arguments is 3. The number of people is 3. The arguments are
3,Sang Shin,{:a=>" loves ", :b=>" Young Shin"}
*JRuby1.1.4, result :*
---- Pass arguments enclosed with parentheses
The number of arguments is 3. The number of people is 3. The arguments are
1,Sang Shin,c
---- Pass arguments without parentheses
The number of arguments is 3. The number of people is 3. The arguments are
1,Sang Shin,c
---- Pass arguments without parentheses, last argument is a hash with {}
The number of arguments is 3. The number of people is 3. The arguments are
3,Sang Shin,a loves b Young Shin
---- Pass arguments without parentheses, last argument is a hash without {}
The number of arguments is 3. The number of people is 3. The arguments are
3,Sang Shin,a loves b Young Shin
---- You have to enclose arguments with parentheses if block is attached
The number of arguments is 3. The number of people is 3. The arguments are
3,Sang Shin,a loves b Young Shin
---- You have to enclose arguments with parentheses if block is attached
The number of arguments is 3. The number of people is 3. The arguments are
3,Sang Shin,a loves b Young Shin
note :
i'm using netbeans 6.5
thnx u
--
http://dwiardiirawan.blogspot.com
"cos everyone could be extraordinary...lighten up !"
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "ruby-on-rails-programming-with-passion" group.
To unsubscribe from this group, send email to
ruby-on-rails-programming-with-passion-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/ruby-on-rails-programming-with-passion?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---