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

From: Dave Thomas <Dave@...>
Date: 2000-01-12 04:09:29 UTC
List: ruby-talk #1110
matz@netlab.co.jp (Yukihiro Matsumoto) writes:

> But it requires knowledge about the constants to overwrite.  For
> example, to reload the program without error, you have to remove all
> constants defined in the program before loading it.

In what circumstances are modules normally reloaded (rather than
having the program simply restarted)? Would it suffice to say that you 
don't issue the warning if the constant's value did not change?

Alternatively, we could think about itemizing the different kinds of
warnings and letting the program turn individual warning messages on
and off (a bit like Perl's 'use strict')

  no_warn %w( REDEFINED_CONSTANT REDEFINED_METHOD ) {
    load "mymod.rb"
  }


(I'm struggling here ;-)

Dave

In This Thread