From: Clemens Hintze Date: 2000-04-01T01:55:53+02:00 Subject: [ruby-talk:02322] Re: Question about attribute writers mrilu writes: > On Sat, 1 Apr 2000, Clemens Hintze wrote: > > Dave Thomas writes: > > > Clemens Hintze writes: ... > > > Perhaps a warning would a good idea in these circumstances: > > > > > > warning: local variable eclipses instance method > > > > Erhm ... IMHO this warning is wrong! Because there is *no*syntax* that > > allow 'age = 12' meaning a method call to 'age='. So if this is > > No. Warning is really good, I think! It should just not be issued for > age = 12. Only for next case as you then "correct yourself" ;) Aargh! My English, my English ... I really have to try to improve myself ... With 'wrong' I meant that in the case Dave has mentioned, *that* warning would be wrong. In the case you want to use it, I think it is excellent, however! :-))) > > > I would propose the opposite, if we really want to issue an > > warning. The warning should be issued for the case > > > > age / 12 ... > So optional if -w should give some warnings, this could be activated at > -w=3. Here I agree wholeheartly with you! Dave's warning in your context issued by a concerning option is the best solution I can see right now! ... \cle -- Clemens Hintze mailto: c.hintze@gmx.net