From: "Brett H. Williams" Date: 2003-08-05T06:38:30+09:00 Subject: Re: change in class << for 1.8.0? On Aug 5, Ben Giddings wrote: > On Mon August 4 2003 3:48 pm, Brett H. Williams wrote: > > Consider this: > > > > #!/usr/bin/env ruby > > msg = ARGV.shift > > try msg = ARGV.shift.dup > > I guess the elements of ARGV are immutable? Bingo. Thanks for the tip, problem solved. It didn't occur to me that ARGV was the problem. Thanks! > > class << msg > > def GetName; return self; end > > end > > Btw, it's probably a bad idea to name your methods with leading caps. Yes--copied from the app which prompted the question which is implemented in C++ with such capitalization. I realize it isn't the norm, but is there another reason you say it's a "bad idea"?