[#1816] Ruby 1.5.3 under Tru64 (Alpha)? — Clemens Hintze <clemens.hintze@...>

Hi all,

17 messages 2000/03/14

[#1989] English Ruby/Gtk Tutorial? — schneik@...

18 messages 2000/03/17

[#2241] setter() for local variables — ts <decoux@...>

18 messages 2000/03/29

[ruby-talk:02322] Re: Question about attribute writers

From: Clemens Hintze <c.hintze@...>
Date: 2000-03-31 23:55:53 UTC
List: ruby-talk #2322
mrilu writes:
> On Sat, 1 Apr 2000, Clemens Hintze wrote:
> > Dave Thomas writes:
> > > Clemens Hintze <c.hintze@gmx.net> 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

In This Thread