From: matz@... (Yukihiro Matsumoto) Date: 2000-01-12T14:58:03+09:00 Subject: [ruby-talk:01111] Re: YADQ (Yet Another Dumb Question) Hi, In message "[ruby-talk:01110] Re: YADQ (Yet Another Dumb Question)" on 00/01/11, Dave Thomas writes: |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? I'm thiking of interactive systems like browsers. This problem was found by JED/Ruby when it tried to provide interactive Ruby feature. |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" | } Let me think about it. * whether redefining raises an exception, or warning, or report nothing. * if reports some kind of error, whether it can be stopped or not. Hmm, 5 combinations. And if error reports can be stopped, we should determine how to specify it. matz.