On 8/17/07, eggie5 <eggie5-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
> So, I read somewhere that you don''t have to parenthesize function
> arguments in ruby. So then I''m in irb and I call puts
Hello.say_hello
> "Alex Egg" and it says, "warning: parenthesize argument(s)
for future
> version".
>
> So what''s the official word? Are non-parenthesized arguments being
> deprecated in ruby?
You''re calling two methods really:
puts(Hello.say_hello("Alex Egg"))
It complains if you just try:
puts Hello.say_hello "Alex Egg"
--
Rick Olson
http://lighthouseapp.com
http://weblog.techno-weenie.net
http://mephistoblog.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---