Ruby 1.9 Warning not there?

S

Satish Talim

[Note: parts of this message were removed to make it a legal post.]

I have a simple program:

def hello2 name2
puts 'Hello ' + name2
return 'success'
end
puts(hello2 'Ruby')

When I run this in 1.8.6, I get the output as:

tmp2.rb:5: warning: parenthesize argument(s) for future version
Hello Ruby
success

However, when I run the same in the development version 1.9, I get the
output as:

Hello Ruby
success


My question is:
a. Has the warning being removed in 1.9 ?
b. What happened to parenthesize argument(s) from 1.9?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top