[#1026] Is this a bug? — Dave Thomas <Dave@...>

18 messages 2000/01/03

[#1084] Infinite loop — Dave Thomas <Dave@...>

17 messages 2000/01/11

[#1104] The value of while... — Dave Thomas <Dave@...>

24 messages 2000/01/11

[ruby-talk:01093] Re: YADQ (Yet Another Dumb Question)

From: matz@... (Yukihiro Matsumoto)
Date: 2000-01-11 13:56:47 UTC
List: ruby-talk #1093
Hi,

=begin off-topic

OK, let me define a dumb question:

  A question about the things which are

    * clearly documented in the reference manual, or
    * I mentioned here recently

By this definition, yours are not dumb at all.  We, Japanese are known
to be humble (at least pretending to be), but you are more than that.

=end off-topic

In message "[ruby-talk:01083] YADQ (Yet Another Dumb Question)"
    on 00/01/10, Dave Thomas <Dave@thomases.com> writes:

|Why don't I get a warning for this (at either global scope or within a 
|class definition)?
|
|   A = 1
|   A = 2

It used to give a error before.  But it was not good for

  * interactive programming, e.g.

     irb(main):001:0> FOO = 44
     44
     ... oops, it should be 55! ...
     irb(main):002:0> FOO = 55
     ERROR!!!

  * reloading files, evaluate program fragment by eval.

After some consideration, I felt even warnings are irritating, so I
decided to let redefining constants upto programmers' responsibility.
I know they aren't really constants by this, but I think it's OK for
everyday use.

							matz.

In This Thread