From: Josh Cheek Date: 2010-07-01T15:46:23+09:00 Subject: Re: pathname.rb:270: warning: `*' interpreted as argument prefix --00c09f8b9198f5a1ab048a4dd29e Content-Type: text/plain; charset=ISO-8859-1 On Thu, Jul 1, 2010 at 12:55 AM, R.. Kumar 1.9.1 OSX wrote: > Josh Cheek wrote: > > > Anyway, if it bothers you, you can go put parens around it so it becomes > > yield(*args) and is not ambiguous. But you don't need to worry about it, > > look where it got those args from: > > Okay, i've put a parens around the *args. I no longer get the warning. > However, why i did not do this earlier, is that when i was googling and > i saw the commit (change) for this issue, there seemed to be several > lines of change involved. > > I hope i am not altering the behavior by putting the parens. > -- > Posted via http://www.ruby-forum.com/. > > You aren't, you probably see them because your warning levels are different than other people's $ ruby -we "def x; yield *[12] end; puts x{|n|n}" -e:1: warning: `*' interpreted as argument prefix 12 $ ruby -e "def x; yield *[12] end; puts x{|n|n}" 12 ----- Also, I appear to not be receiving Brian's posts. I only realized that anyone other than R. Kumar and I were in this thread by seeing Kumar reply to him, and checking ruby-forum, where I saw that Brian had responded. I checked my mail with the filter from:b.candler@pobox.com and don't have anything since 15 June. I'm on gmail. Does anyone else on gmail not see his posts? Possible factors: I think he posted into this thread while I was writing my initial response, because I remember clicking to have it show me what he had said. Perhaps this is a gmail bug? I don't think I blocked him, I don't even know how to block people, if I consistently get spam from addresses, I set up a filter to trash their messages, but I checked my filters and didn't see in there (plus it seems like that would be difficult to do by accident). --00c09f8b9198f5a1ab048a4dd29e--