[#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:01099] Re: YADQ (Yet Another Dumb Question)

From: Yasushi Shoji <yashi@...>
Date: 2000-01-11 15:33:49 UTC
List: ruby-talk #1099
From: Dave Thomas <Dave@thomases.com>
Subject: [ruby-talk:01095] Re: YADQ (Yet Another Dumb Question)
Date: 11 Jan 2000 09:05:50 -0600

> Personally, I feel the damage done by an altered constant is far more
> severe than the inconvenience of the above two cases.

I agree with that.  However, quick search on ruby-dev, unfortunately
only in Japanese, shows that there was some threads about it. I also
felt that we can change Matz's mind by giving good reason/idea for
it.

> So... how about a compromise? We could have a global method, say

how about making it Constant Class and give a unset/clear method ;P

module Math
  PI.unset # or clear, same as some class' instance method
  PI = 2
end

the reason is same as Dave's.  Explicity.  and it's more like OO lang,
IMHO. ;)
--
          yashi

In This Thread